🌐 Unofficial CDNJS API
Search cdnjs libraries just a snap - More Information about API https://cdnjs.com/api
Install
Using NPM
npm install cdnjs-api --save
Using Yarn
yarn add cdnjs-api
Usage
cdnjs.search|lib|versions|files(query: string, options?: Object)
const cdnjs = // Search jquerycdnjs // Display custom fields// See available fields on documentation belowcdnjs // Print HTML instead of JSONcdnjs // Get jquery datacdnjs // Get jquery versionscdnjs // Get jquery filescdnjs // Get jquery version 1.12.0 filescdnjs
API
Methods | Description |
---|---|
search | Search with query |
lib | Get library data |
versions | Get library versions |
files | Get library files |
Default Options
fields: version: false description: false homepage: false keywords: false license: false repository: false autoupdate: false author: false assets: false json: true
Available Fields
- version
- description
- homepage
- keywords
- license
- repository
- autoupdate
- author
- assets
License
MIT © oknoorap