1.0.0 • Published 9 years ago

is-package v1.0.0

Weekly downloads
16
License
MIT
Repository
github
Last release
9 years ago

is-package Build Status

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