Skip to content

Check that given `name` or `user/repo` exists in npm registry or in github as organization/user repository.

License

Notifications You must be signed in to change notification settings

tunnckoCore/is-missing

Repository files navigation

npm standard style build status coverage status deps status

Check that given name or user/repo exists in npm registry or in github as user repository.

Install

npm i is-missing --save
npm test
is-missing --help

Usage

For more use-cases see the tests

var isMissing = require('is-missing')

isMissing('some-no-existing-npm-package-name', function _cb(err, bool) {
  console.log(bool)
  //=> false
})

isMissing('mochajs/mocha', function _cb(err, bool) {
  console.log(bool)
  //=> true
})

isMissing('mochajs/not-existing-repository', function _cb(err, bool) {
  console.log(bool)
  //=> false
})

CLI

run is-missing --help or try this one

npm i is-missing -g

is-missing not-existing-npm-package-name

  Aloha, master! How r u today?

  ✔ Oh yes, not-existing-npm-package-name will be yours.

Related

Author

Charlike Mike Reagent

License MIT license

Copyright (c) 2015 Charlike Mike Reagent, contributors.
Released under the MIT license.


Proudly generated by docks(1) on May 9, 2015.

About

Check that given `name` or `user/repo` exists in npm registry or in github as organization/user repository.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published