Check if an npm package name is valid and does not currently exist.
The return values are set up to conform to inquirer's validate function expectations.
Because of the reliance on
npm, this package will not work in the browser, sorry!
npm install can-haz-package
var canHazPackage =// reurns true// returns 'Sorry, that package name is taken! :('// returns 'Package name does not conform to naming rules.'
Contributions welcome! Please read the contributing guidelines first.