1.0.1 • Published 6 years ago

publishable v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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