version-io

2019-06-24 admin

version-io是什么

什么是version-io,Semantic versioning tool. Apply major, minor, patch and version to package.json.

version-io使用教程帮助文档

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:

const version = require('version-io');

version('1.1.1', (error) => {
    if (error)
        console.error(error.message);
});

License

MIT

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-68079.html

文章标题:version-io

回到顶部