Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-scoped

sindresorhus4mMIT3.0.0TypeScript support: included

Check if a string is a scoped npm package name

scoped, npm, package, name, is, detect, validate, validation

readme

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
  • scoped-regex - Regular expression for matching scoped npm package names