was-unpublished

1.0.1 • Public • Published

was-unpublished

NPM

Small pacakge to test if a specified version of a package on npm was unpublished.

var unpublished = require('was-unpublished')
 
unpublished('was-unpublished', '1.0.0', function (err, isUnpublished) {
  if (err) return console.error(err) // if the package was never published: error
  if (isUnpublished) {
    // unpublished
  } else {
   // still published
  }
})

CLI

npm install was-unpublished -g

usage: was-unpublished <pacakge> <version>

Readme

Keywords

Package Sidebar

Install

npm i was-unpublished

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • finnp