UNPKG

is-scoped

Version:

Check if a string is a scoped npm package name

16 lines (12 loc) 279 B
/** Check if a string is a [scoped npm package name](https://docs.npmjs.com/misc/scope). @example ``` import isScoped from 'is-scoped'; isScoped('@sindresorhus/df'); //=> true isScoped('cat-names'); //=> false ``` */ export default function isScoped(string: string): boolean;