ina (Is Name Available)
Check name availability on npm
Installation
npm install ina --save
Usage
const ina = ; // get the package infoina // get the package info with download count for the last monthina
API
.check() accepts 2 parameters:
- The first parameter is the package name
- The second parameter is boolean, if it's tro the download count for the last month will be included
Example responses
Response for existing package with downloads count:
id: 'package-name' exists: true version: '0.1.0' modified: 'LatestTimeStamp' published: true dowloadsLastMonth: 100
Response for not existing package:
exists: false