0.0.1 • Published 6 years ago

npm-version-exists v0.0.1

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

npm-version-exists

Check if the specified package version exists on npm

Installation

  yarn add npm-version-exists

Usage

  const nve = require('npm-version-exists')
  nve({
    name: 'npm-version-exists',
    version: '0.0.1'
  })
    .then(exists => console.log(exists)) //returns bool
    .catch(err => console.log(err))
  const nve = require('npm-version-exists')

  nve({
    name: 'npm-version-exists',
    version: '0.0.1',
    token: 'xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx'
  },)
    .then(exists => console.log(exists)) //returns bool
    .catch(err => console.log(err))