coderaiser / version-io

Semantic versioning tool. Apply major, minor, patch and version to package.json

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version-io

Semantic versioning tool. Apply major, minor, patch and version to package.json.

Install

npm i version-io -g

How to use?

Show current version:

# version
v1.0.0

Set new version:

# version v1.0.1
# version
v1.0.1

Apply minor, major or patch:

# version minor
v1.1.0

Use as module

Install version-io with:

npm i version-io --save

Format: version(number, callback);

  • number could be new version number or minor|major|patch

You could update version in package.json with:

import version from 'version-io';

const version = await version();

License

MIT

About

Semantic versioning tool. Apply major, minor, patch and version to package.json

License:MIT License


Languages

Language:JavaScript 100.0%