Detect if a string is a package name that could be on npm
$ npm install --save is-package
var isPackage = require('is-package')
isPackage('xtend')
//=> true
isPackage('./node_modules/xtend')
//=> false
Required
Type: string
The package name or path to test.
MIT © Ben Drucker