You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
616 B
34 lines
616 B
3 years ago
|
# is-scoped [](https://travis-ci.org/sindresorhus/is-scoped)
|
||
|
|
||
|
> Check if a string is a [scoped npm package name](https://docs.npmjs.com/misc/scope)
|
||
|
|
||
|
|
||
|
## Install
|
||
|
|
||
|
```
|
||
|
$ npm install --save is-scoped
|
||
|
```
|
||
|
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```js
|
||
|
const isScoped = require('is-scoped');
|
||
|
|
||
|
isScoped('@sindresorhus/df');
|
||
|
//=> true
|
||
|
|
||
|
isScoped('cat-names');
|
||
|
//=> false
|
||
|
```
|
||
|
|
||
|
|
||
|
## Related
|
||
|
|
||
|
- [scoped-regex](https://github.com/sindresorhus/scoped-regex) - Regular expression for matching scoped npm package names
|
||
|
|
||
|
|
||
|
## License
|
||
|
|
||
|
MIT © [Sindre Sorhus](https://sindresorhus.com)
|