is-scoped

Check if a string is a scoped npm package name

Usage no npm install needed!

<script type="module">
  import isScoped from 'https://cdn.skypack.dev/is-scoped';
</script>

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

Related

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