npm

Don't miss out on this year's npm Pride t-shirt designs!Order your favorites here »

publishable

1.0.1 • Public • Published

node-publishable

Build Status Coverage Status codecov.io Dependency Status devDependency Status Known Vulnerabilities MIT license

Checks if a package is publishable to NPM registry (with private package support!)

Sponsor

Install

$ npm install publishable

Usage

import publishable = require("publishable");
 
await publishable("package-name", "version"); // returns `boolean`

Related

Changelog

1.0.1

  • Add missing changelog

1.0.0

  • Stable release

0.2.1

  • Add E404 error code handling

0.2.0

  • Add .npmrc support
  • Add scoped package support
  • Add private package support

0.1.0

  • Initial commit

Debugging

Set DEBUG environment variable to publishable. You will be able to see debug messages on your console.

$ env DEBUG='publishable' node your-app.js

Testing

$ npm run test

... OR

$ npm run lint # Check lint 
$ npm run coverage # Run test & generate code coverage report 

Build

$ npm run build

License

MIT

See full license on mooyoul.mit-license.org

install

npm i publishable

Downloadsweekly downloads

7

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability