Skip to content

bendrucker/is-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Detect if a string is a package name that could be on npm

Resources

License

Stars

Watchers

Forks

Packages

No packages published