is-published-to-npm
Is this version of this package published to npm yet?
Use as a cli tool:
# from a directory with a package.jsonis-published-to-npm# or for any packageis-published-to-npm {your package} {your version}
(Check the exit status - anything not zero means it has already been published)
Or as a module:
const isPublishedToNPM = ;// or import { isPublishedToNPM } from 'is-published-to-npm';const pkg = processargv2;const version = processargv3;;