import-cdn-js

0.0.2 • Public • Published

import-cdn-js

import JavaScript library from CDN links

Install

$ npm i -s import-cdn-js

Usage

ImportCDNJS(link: string, libraryName: string):Promise

import ImportCDNJS from 'import-cdn-js';
 
ImportCDNJS('//cdn.bootcss.com/jquery/3.3.1/jquery.min.js', '$')
    .then($ => $('body').text("Hello world!"));

Readme

Keywords

none

Package Sidebar

Install

npm i import-cdn-js

Weekly Downloads

41

Version

0.0.2

License

ISC

Unpacked Size

57.9 kB

Total Files

6

Last publish

Collaborators

  • may529
  • mushan01