ai-video-downloader-toolkit
v0.1.4
Published
Build tagged URLs and embeddable HTML for the AI Video Downloader product.
Maintainers
Readme
AI Video Downloader Link Toolkit
Small toolkit to build tagged URLs and embeddable HTML for the AI Video Downloader product. Defaults to https://supermaker.ai/video/ with optional UTM tags for attribution.
Install
npm install supermaker-ai-video-downloaderUsage
const { buildLink, generateAnchor } = require("ai-video-downloader-toolkit");
// Make a tagged link
const url = buildLink({
utmSource: "blog",
utmMedium: "sidebar",
utmCampaign: "ai-video",
// optional: override default /video/ path
// path: "/video/",
});
// Create an anchor snippet for your site
const html = generateAnchor({
text: "SuperMaker AI Video Downloader",
rel: "sponsored noopener",
utm: { utmSource: "blog" },
});API
buildLink(options)returns a URL string pointing to SuperMaker with optionalutm_source,utm_medium,utm_campaign, andpath.generateAnchor(options)returns an HTML anchor string with customizabletext,rel,target,className, andutmparameters (passed tobuildLink).
Link checklist
- Use descriptive anchor text like "SuperMaker AI Video Downloader".
- Add
rel="sponsored noopener"orrel="nofollow noopener"when required. - Keep
target="_blank"(default) to open in a new tab.
Development
npm test