1 .\" Generated with Ronnjs 0.3.8
2 .\" http://github.com/kapouer/ronnjs/
4 .TH "NPM\-VERSION" "3" "November 2013" "" ""
7 \fBnpm-version\fR \-\- Bump a package version
12 npm\.commands\.version(newversion, callback)
17 Run this in a package directory to bump the version and write the new
18 data back to the package\.json file\.
21 If run in a git repo, it will also create a version commit and tag, and
22 fail if the repo is not clean\.
25 Like all other commands, this function takes a string array as its first
26 parameter\. The difference, however, is this function will fail if it does
27 not have exactly one element\. The only element should be a version number\.