All Projects → azu → can-npm-publish

azu / can-npm-publish

Licence: MIT license
A command line tool that check to see if `npm publish` is possible.

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to can-npm-publish

es-feature-detection
ECMAScript feature and API detection
Stars: ✭ 16 (-73.77%)
Mutual labels:  test, check
system-checks
⚙ Checks and shows Linux system info - Distro name, IP, running processes and etc. Official site - system-checks.org
Stars: ✭ 35 (-42.62%)
Mutual labels:  test, check
Pkg Ok
👌 Checks paths and scripts defined in package.json before you publish
Stars: ✭ 219 (+259.02%)
Mutual labels:  test, publish
apistress
Very simple stress testing tool for API
Stars: ✭ 22 (-63.93%)
Mutual labels:  test
TFM
Tyler's Frame Machine is a simple, free, educational, and portable tool for testing, benchmarking, comparison, and demonstration. TFM supports OpenGL, DirectX 11, DirectX 12, Metal, and most importantly, Vulkan! https://tylemagne.github.io/TFM
Stars: ✭ 63 (+3.28%)
Mutual labels:  test
beekeeper
Swarm Beekeeper is an orchestrator that can manage a cluster of Bee nodes and call into their API. It allows various scenario’s to be performed on these nodes. The Swarm team uses Beekeeper internally for integration tests.
Stars: ✭ 51 (-16.39%)
Mutual labels:  test
mockingbird
🐦 Decorator Powered TypeScript Library for Creating Mocks
Stars: ✭ 70 (+14.75%)
Mutual labels:  test
SwiftParamTest
Parameterized test for Swift
Stars: ✭ 56 (-8.2%)
Mutual labels:  test
nagitheus
Nagios Check towards Prometheus
Stars: ✭ 19 (-68.85%)
Mutual labels:  check
TokamakPublish
Use Tokamak in your Publish themes.
Stars: ✭ 19 (-68.85%)
Mutual labels:  publish
vscode-phpunit
The VS Code Test Explorer extension for PHPUnit
Stars: ✭ 100 (+63.93%)
Mutual labels:  test
mock-hls-server
Fake a live/event HLS stream from a VOD one. Useful for testing. Supports looping.
Stars: ✭ 61 (+0%)
Mutual labels:  test
Android-Test
Android测试中常用到的脚本
Stars: ✭ 17 (-72.13%)
Mutual labels:  test
pytest
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
Stars: ✭ 9,731 (+15852.46%)
Mutual labels:  test
diffido
Watch web pages for changes
Stars: ✭ 19 (-68.85%)
Mutual labels:  check
wire-service-jest-util
Utility library for @-wire Lightning Web Component tests
Stars: ✭ 18 (-70.49%)
Mutual labels:  test
cover.run
Code coverage
Stars: ✭ 34 (-44.26%)
Mutual labels:  test
elastic-search-test
ESIntegTestCase example
Stars: ✭ 17 (-72.13%)
Mutual labels:  test
lwc-test
LWC plugins and utilities for testing
Stars: ✭ 39 (-36.07%)
Mutual labels:  test
arduino-ci-script
Bash script for continuous integration of Arduino projects
Stars: ✭ 25 (-59.02%)
Mutual labels:  test

can-npm-publish Actions Status: test

A command line tool that check to see if npm publish is possible.

Check list

All check list is passed, exit status will be 0.

  • Check that the package's name is valid
  • Check that the package is not private:true
  • Check that package@version is already published in npm registry

Install

Install with npm:

npm install can-npm-publish

Usage

Usage
  $ can-npm-publish [directory|package.json path]

Options
  --verbose  show detail of errors

Examples
  $ can-npm-publish
  $ echo $? # 0 or 1

All check list is passed, exit status will be 0. If has any error, exit status will be 1.

If you want to know details of the error, you can use --verbose flag.

$ can-npm-publish --verbose
[email protected] is already published
$ echo $?
1

UseCase

Run can-npm-publish before npm publish:

can-npm-publish && npm publish

You can use it for publishing without choice.

For example, it is useful for using with lerna.

Publish all packages if it is possible.

lerna exec --bail=false -- "can-npm-publish && npm publish"

In this use-case, you should use @monorepo-utils/publish instead of can-npm-publish. Because, @monorepo-utils/publish wrapped can-npm-publish.

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm i -d && npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].