
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
Get the latest version of a CSS or JavaScript library hosted on CDNJS
$ npm install --save latest-lib
const latestLib = require('latest-lib');
// search for the latest version of bootstrap
latestLib('bootstrap')
.then(library => console.log(library))
//=> {name: 'twitter-bootstrap', version: '4.0.0-alpha.6', files: [...]}
.catch(err => console.log(err));
// search for the latest version of bootstrap 3
latestLib('bootstrap@3')
.then(library => console.log(library))
//=> {name: 'twitter-bootstrap', version: '3.3.7', files: [...]}
.catch(err => console.log(err));
Returns a Promise containing an object with the following properties:
On success:
StringStringArrayOn error:
Error objectType: String
The name of the library
Suffixing the name with @[number] will fetch the latest version of [number] major release
Type: Object
Type: String
Possible choices:
css
.css files of the library in the responsejs
.js files of the library in the responseMIT © Gabriel Mangiurea
FAQs
Get the latest version of a CSS or JavaScript library hosted on CDNJS
The npm package latest-lib receives a total of 483 weekly downloads. As such, latest-lib popularity was classified as not popular.
We found that latest-lib demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.