is-scoped
Check if a string is a scoped npm package name
Last updated a year ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install is-scoped 
SYNC missed versions from official npm registry.

is-scoped Build Status

Check if a string is a scoped npm package name

Install

$ npm install is-scoped

Usage

const isScoped = require('is-scoped');

isScoped('@sindresorhus/df');
//=> true

isScoped('cat-names');
//=> false

Related

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

License

MIT © Sindre Sorhus

Current Tags

  • 2.1.0                                ...           latest (a year ago)

3 Versions

  • 2.1.0                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 69
This Week 1,769
This Month 7,996
Last Day 1,700
Last Week 9,621
Last Month 41,079
Dependencies (1)
Dev Dependencies (3)
Dependents (83)

Copyright 2014 - 2016 © taobao.org |