- 正确配置Mind Elixir的markdown渲染器,支持表格渲染为HTML格式 |
||
|---|---|---|
| .. | ||
| dist | ||
| LICENSE | ||
| README.md | ||
| package.json | ||
README.md
npm2url
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.