3.1.5 • Published 6 years ago
module-to-cdn v3.1.5
module-to-cdn

Get cdn config from npm module name
Install
$ npm install --save module-to-cdn
Usage
const moduleToCdn = require('module-to-cdn');
moduleToCdn('react', '15.3.0');
/* => {
name: 'react',
var: 'React',
url: 'https://unpkg.com/react@15.3.0/dist/react.min.js',
version: '15.3.0'
}
*/
API
moduleToCdn(moduleName, version, options)
return the result Object
or null (if module couldn't be find)
moduleName
Type: string
The name of the module
version
Type: string
The version of the module
options
options.env
Type: string
Values: development
, production
Default: development
Result
name
: name of the modulevar
: name of the global variable exposing the moduleurl
: url where the module is availableversion
: the version asked for
License
MIT © Thomas Sileghem
3.1.5
6 years ago
3.1.4
6 years ago
3.1.3
6 years ago
3.1.2
7 years ago
3.1.1
8 years ago
3.1.0
8 years ago
3.0.4
8 years ago
3.0.3
8 years ago
3.0.2
8 years ago
3.0.1
8 years ago
3.0.0
8 years ago
2.0.2
8 years ago
2.0.1
8 years ago
2.0.0
8 years ago
1.1.3
8 years ago
1.1.2
8 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago