was-unpublished
v1.0.1
Published
Look up in the npm registry if a node module version was unpublished"
Downloads
2
Readme
was-unpublished
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>