is-scoped
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

is-scoped

Check if a string is a scoped npm package name

Install

$ npm install is-scoped

Usage

import isScoped from 'is-scoped';

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

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

Related

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

Package Sidebar

Install

npm i is-scoped

Weekly Downloads

878,990

Version

3.0.0

License

MIT

Unpacked Size

2.7 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus