publishable
v1.0.1
Published
Checks if a package is publishable to NPM registry
Downloads
16
Readme
node-publishable
Checks if a package is publishable to NPM registry (with private package support!)
Sponsor
- Vingle - Vingle, Very Community. Love the things that you love. - We're hiring!
Install
$ npm install publishable
Usage
import publishable = require("publishable");
await publishable("package-name", "version"); // returns `boolean`
Related
- mooyoul/node-publishable-cli - CLI for this module, made for CI/CD workflow
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
See full license on mooyoul.mit-license.org