Package Exports
- latest-lib
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (latest-lib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
latest-lib 
Get the latest version of a CSS or JavaScript library hosted on CDNJS
Install
$ npm install --save latest-libUsage
const latestLib = require('latest-lib');
// search for bootstrap
latestLib('bootstrap')
.then(library => console.log(library))
//=> {name: 'twitter-bootstrap', version: '4.0.0-alpha.6', files: [...]}
.catch(err => console.log(err));API
latestLib(name[, opts])
name
Type: String
The name of the library
opts
Type: Array
only
Type: String
Possible choices:
css- return only the
.cssfiles of the library in the response
- return only the
js- return only the
.jsfiles of the library in the response
- return only the
License
MIT © Gabriel Mangiurea