is-scoped
Check if a string is a scoped npm package name
Install
$ npm install is-scopedUsage
import isScoped from 'is-scoped';
isScoped('@sindresorhus/df');
//=> true
isScoped('cat-names');
//=> falseRelated
- scoped-regex - Regular expression for matching scoped npm package names