latest-lib 
Get the latest version of a CSS or JavaScript library hosted on CDNJS
Install
$ npm install --save latest-lib
Usage
const latestLib = require('latest-lib');
latestLib('bootstrap')
.then(library => console.log(library))
.catch(err => console.log(err));
API
latestLib(name[, opts])
name
Type: String
The name of the library
opts
Type: Object
only
Type: String
Possible choices:
css
- return only the
.css files of the library in the response
js
- return only the
.js files of the library in the response
License
MIT © Gabriel Mangiurea