Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

version-io

coderaiser6.5kMIT5.0.0

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

readme

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 versionio from 'version-io';

const version = await versionio();

License

MIT

changelog

2025.03.30, v5.0.0

feature:

  • 1624b5d version-io: migrate to ESM
  • a11fae2 version-io: putout v39.5.0
  • 626950e version-io: pkg-up v5.0.0
  • 7aff931 version-io: madrun v11.0.0
  • cacb058 version-io: eslint-plugin-putout v26.1.0
  • 74a5de6 version-io: eslint v9.23.0

2020.04.28, v4.0.1

fix:

  • (version) condition
  • (version) add tryToCatch
  • (version) rm callback assertion

2020.04.28, v4.0.1

fix:

  • (version) condition
  • (version) add tryToCatch
  • (version) rm callback assertion

2020.04.28, v4.0.0

feature:

  • (vesion-io) promisify
  • (package) putout v7.23.0
  • (package) eslint-plugin-putout v3.7.1
  • (package) eslint-plugin-node v11.1.0
  • (package) eslint v6.8.0
  • (package) madrun v5.5.0
  • (package) readjson v2.0.1
  • (package) writejson v3.0.0
  • (package) try-catch v3.0.0

2019.09.10, v3.0.0

feature:

  • (version) drop support of node < 8
  • (package) pkg-up v3.1.0
  • (package) fullstore v2.0.2

2018.06.14, v2.0.3

feature:

  • (package) writejson v2.0.1

2018.02.09, v2.0.2

feature:

  • (package) try-catch v2.0.0

2017.05.22, v2.0.1

fix:

  • (package) pkg-up v2.0.0
  • (version) rm "{"

2017.05.22, v2.0.0

feature:

  • (version) es2015-ify: rm options

2015.12.17, v1.2.5

fix:

  • fix(version) writejson undefined

2015.12.16, v1.2.4

feature:

  • (ischanged) fs.writeFile -> writejson

2015.09.24, v1.2.3

feature:

  • (version) try-require -> try-catch

2015.06.22, v1.2.2

feature:

  • (package) readjson v1.1.0

2015.06.08, v1.2.1

feature:

  • (package) try-require v1.2.1

2015.03.28, v1.2.0

feature:

  • (version) get version from package.json

2015.03.26, v1.1.1

fix:

  • (version) --v -> --version

2015.02.06, v1.1.0

feature:

  • (version) add support of any json file

2015.01.16, v1.0.6

fix:

  • (version) dir parameter never used

2015.01.15, v1.0.5

feature:

  • (package) execon v1.1.0

2014.12.12, v1.0.4

feature:

  • (package) util-io -> execon

2014.11.5, v1.0.3

feature:

  • (package) util-io v1.6.0

2014.10.31, v1.0.2

fix:

  • (package) bin: version-io -> version

2014.10.31, v1.0.1

feature:

  • (package) minor v1.2.0

2014.10.30, v1.1.1

feature:

  • (minor) mv fs, Util to update

2014.10.30, v1.1.0

feature:

  • (minor) add bin