is-scoped

Check if a string is a scoped npm package name


Keywords
scoped, npm, package, name, is, detect, validate, validation
License
MIT
Install
npm install is-scoped@3.0.0

Documentation

is-scoped

Check if a string is a scoped npm package name

Install

$ npm install is-scoped

Usage

const isScoped = require('is-scoped');

isScoped('@sindresorhus/df');
//=> true

isScoped('cat-names');
//=> false

Related

  • scoped-regex - Regular expression for matching scoped npm package names

License

MIT © Sindre Sorhus