开发者社区> 镜像站> NPM> tamper-version
tamper-version
CLI utility to tamper package.json' version
Last updated a year ago by artemv .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install tamper-version 
SYNC missed versions from official npm registry.

tamper-version

CircleCI

CLI utility to change package.json version.

Install

$ npm install --global tamper-version

Examples

You can use it to make your application version equal to current Git hash - can be useful at CI e.g. before building Electron app' intermediate binary:

  yarn tamper-version "$(git rev-parse --short HEAD)"

Usage

$ tamper-version --help

  Usage
    $ tamper-version <suffix> [--full]

  Examples
    $ tamper-version binaries
  This will add "-binaries" suffix to package.json' version, so if it was 1.0.0 it will become 1.0.0-binaries.

    $ tamper-version `cat .version` --full
  This will put contents of .version file to package.json' version field.
  Prior to changing package.json will be saved to package.json.bak.

License

MIT © Artem Vasiliev

Current Tags

  • 1.1.3                                ...           latest (10 months ago)

6 Versions

  • 1.1.3                                ...           10 months ago
  • 1.1.2                                ...           10 months ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (1)
Dev Dependencies (6)
Dependents (0)
None