UNPKG

is-scoped

Version:

Check if a string is a scoped npm package name

26 lines (16 loc) 410 B
# is-scoped > Check if a string is a [scoped npm package name](https://docs.npmjs.com/misc/scope) ## Install ``` $ npm install is-scoped ``` ## Usage ```js import isScoped from '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