Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pixelygroup/version-x

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixelygroup/version-x

Bumps version in package.json and package-lock.json files based on passed argument

  • 0.3.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

version-x

This small utility helps to change version in your project

How to use in your project

  1. In your terminal run command:
npm install @pixelygroup/version-x --save-dev
  1. Add into scripts section in package.json
 "scripts": {
    ...
    "version-x": "version-x",
    "version-major": "version-x -m",
    "version-minor": "version-x -i",
    "version-patch": "version-x -p",
    ...
  },
  1. This will allow you to run them as:
npm run version-x -- -x 1.1.1-exact-version

OR

npm run version-patch

Usage

Usage: -b 1.1.1 <version> / -m <major> / -i <minor> / -p <patch>.
In case of passing multiple options,
the conditions will be checked and applied
in the same order (left > right)

Options:
      --help     Show help                                             [boolean]
      --version  Show version number                                   [boolean]
  -x, --exact    requires version in format 1.1.1 or 1.1.1-beta, etc.   [string]
  -m, --major    Bumps a version on X position X.1.1                   [boolean]
  -i, --minor    Bumps a version on X position 1.X.1                   [boolean]
  -p, --patch    Bumps a version on X position 1.1.X                   [boolean]
  -t, --tag      Creates and pushes git tag                            [boolean]

Global installation

How to install globally directly from cloned Github repo

  1. Download the repository.
  2. Enter the directory and run
npm install -g .

How to install globally from NPM

In your terminal run command:

npm install -g @pixelygroup/version-x

How to uninstall globally

npm uninstall -g @pixelygroup/version-x

Do you enjoy this package? Help us keep it maintained!

Buy us a coffee or become a sponsor

Keywords

FAQs

Package last updated on 18 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc