is-scoped-package
v1.0.0
Published
Detect if a string is a scoped package name that could be on npm.
Downloads
44
Maintainers
Readme
is-scoped-package
Detect if a string is a scoped package name that could be on npm
Install
$ npm install --save is-scoped-package
Usage
var isScopedPackage = require('is-scoped-package');
isScopedPackage('@sanemat/generator-nm');
//=> true
isScopedPackage('generator-nm');
//=> false
API
isScopedPackage(name) -> boolean
name
Required
Type: string
Scoped package name.
See also
- 13 - Working with scoped packages | npm Documentation
- scope | npm Documentation
npm help scope
- validate-npm-package-name
- npm-package-arg
- is-package
Changelog
License
MIT © sanemat