Skip to content

Check if the specified package version exists on npm

Notifications You must be signed in to change notification settings

jdelibas/npm-version-exists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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))

About

Check if the specified package version exists on npm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published