Package Exports
- version-io
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (version-io) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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.0Set new version:
# version v1.0.1
# version
v1.0.1Apply minor, major or patch:
# version minor
v1.1.0Use as module
Install version-io with:
npm i version-io --saveFormat: version(number [,options], callback);
numbercould be new version number orminor|major|patchoptionsis optional parameter:options.dirisprocess.cwd()by defaultoptions.nameispackageby default, but could be any json file.
You could update version in package.json with:
var version = require('version-io');
version('1.1.1', function(error) {
if (error)
console.error(error.message);
});License
MIT