# 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

```bash
npm install supermaker-ai-video-downloader
```

## Usage

```js
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 optional `utm_source`, `utm_medium`, `utm_campaign`, and `path`.
- `generateAnchor(options)` returns an HTML anchor string with customizable `text`, `rel`, `target`, `className`, and `utm` parameters (passed to `buildLink`).

## Link checklist

- Use descriptive anchor text like "SuperMaker AI Video Downloader".
- Add `rel="sponsored noopener"` or `rel="nofollow noopener"` when required.
- Keep `target="_blank"` (default) to open in a new tab.

## Development

```bash
npm test
```
