Check if a string is a scoped npm package name
$ npm install --save is-scoped
const isScoped = require('is-scoped'); isScoped('@sindresorhus/df'); //=> true isScoped('cat-names'); //=> false
MIT © Sindre Sorhus