0.2.4 • Published 5 months ago

npm2url v0.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

npm2url

npm version npm downloads bundle JSDocs

Convert an NPM package import into a CDN URL.

Usage

Install package:

pnpm install npm2url

Import:

import { urlBuilder } from "npm2url";

const url: string = urlBuilder.getFullUrl('npm2url');
const url: string = urlBuilder.getFullUrl('npm2url', 'jsdelivr');

// find the fastest provider
await urlBuilder.findFastestProvider();
const fastestUrl = urlBuilder.getFullUrl('npm2url');

// find the fastest provider temporarily
const fastest = await urlBuilder.getFastestProvider();
const fastestUrl = urlBuilder.getFullUrl('npm2url', fastest);

License

Made with 💛

Published under MIT License.

0.2.3

5 months ago

0.2.2

5 months ago

0.2.4

5 months ago

0.2.1

10 months ago

0.2.0

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago