ai-image-master-toolkit
v0.1.4
Published
Build tagged URLs and embeddable HTML for the AI Image Master product.
Maintainers
Readme
AI Image Master Link Toolkit
Small toolkit to build tagged URLs and embeddable HTML for the AI Image Master product. Defaults to https://supermaker.ai/image/ with optional UTM tags for attribution.
Install
npm install supermaker-ai-image-masterUsage
const { buildLink, generateAnchor } = require("ai-image-master-toolkit");
// Make a tagged link
const url = buildLink({
utmSource: "blog",
utmMedium: "sidebar",
utmCampaign: "ai-image-master",
// optional: override default /image/ path
// path: "/image/",
});
// Create an anchor snippet for your site
const html = generateAnchor({
text: "SuperMaker AI Image Master",
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 Image Master".
- Add
rel="sponsored noopener"orrel="nofollow noopener"when required. - Keep
target="_blank"(default) to open in a new tab.
Development
npm test