check-npm-name
Zero dependency micro-library that returns true
if the name is already taken and false
if the name is still available.
Usage
const check =
{ const isAlreadyTaken = await console // true const isAlreadyTaken2 = await console // false}
Features
You can get detailed report about requested package
const check = { const detailedResponse = await console /** *{ * time: { created: '2017-07-03T17:38:47.172Z'}, * homepage: 'https://github.com/neura-js/neura#readme', * keywords: [ * 'javascript', * 'science', * 'matrix', * 'array', * 'neural network', * 'js', * 'machine learning' * ], * repository: { type: 'git', url: 'git+https://github.com/neura-js/neura.git' }, * author: { name: 'alexile' }, * bugs: { url: 'https://github.com/neura-js/neura/issues' }, * license: 'MIT', * readmeFilename: 'README.md' *} */}