1 npm-version(3) -- Bump a package version
2 ========================================
6 npm.commands.version(newversion, callback)
10 Run this in a package directory to bump the version and write the new
11 data back to the package.json file.
13 If run in a git repo, it will also create a version commit and tag, and
14 fail if the repo is not clean.
16 Like all other commands, this function takes a string array as its first
17 parameter. The difference, however, is this function will fail if it does
18 not have exactly one element. The only element should be a version number.