Skip to content

AnshSinghSonkhia/generate-cdn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

generate-cdn

Generate CDN links from GitHub & unpkg (open-source) URLs

Installation

npm i generate-cdn

Usage

const { githubCDN, unpkgCDN } = require('generate-cdn');

Generate CDN Link from GitHub URL

const githubUrl = 'https://github.com/AnshSinghSonkhia/thousand-colors/blob/main/index.js';
const cdnLink = githubCDN(githubUrl);
console.log(cdnLink);

Generate CDN Link from unpkg URL

const unpkgUrl = 'https://unpkg.com/boxicons@2.1.4/dist/boxicons.js';
const cdnLink2 = unpkgCDN(unpkgUrl);
console.log(cdnLink2);

About

Generate CDN links from GitHub & unpkg (open-source) URLs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published