npm-version-bump-checker

1.0.5 • Public • Published

npm-version-bump-checker

Checks if version in local package.json is higher than in npm

Description

This utility will throw an error when local version <= remote version

You can pair this tool with CI/CD tools to ensure your package.json version is properly increased before being merged to master.

Installation

npm install npm-version-bump-checker --save-dev

Usage

Add the proper npm script for your NodeJS platform to the scripts key in package.json:

"can-publish-nix": "npm info $npm_package_name version | npm-version-bump-checker"
"can-publish-win": "npm info %npm_package_name% version | npm-version-bump-checker"

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.5
    1
  • 1.0.4
    1

Package Sidebar

Install

npm i npm-version-bump-checker

Weekly Downloads

2

Version

1.0.5

License

ISC

Unpacked Size

4.4 kB

Total Files

7

Last publish

Collaborators

  • zatziky