1.0.0 • Published 9 years ago
is-package v1.0.0
is-package
Detect if a string is a package name that could be on npm
Install
$ npm install --save is-package
Usage
var isPackage = require('is-package')
isPackage('xtend')
//=> true
isPackage('./node_modules/xtend')
//=> false
API
isPackage(name)
-> boolean
name
Required
Type: string
The package name or path to test.
License
MIT © Ben Drucker
1.0.0
9 years ago