publishable
TypeScript icon, indicating that this package has built-in type declarations

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

Dependents (1)

Package Sidebar

Install

npm i publishable

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

7.71 kB

Total Files

6

Last publish

Collaborators

  • mooyoul