Skip to content

Commit

Permalink
docs(readme): add silent option example to code usage section
Browse files Browse the repository at this point in the history
  • Loading branch information
Tapppi committed Sep 27, 2016
1 parent e68bd6b commit 832458a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,17 @@ standard-version --help

## Code usage

Use the `silent` option to stop `standard-version` from printing anything
to the console.

```js
var standardVersion = require('standard-version')

// Options are the same as command line, except camelCase
standardVersion({
noVerify: true,
infile: 'docs/CHANGELOG.md'
infile: 'docs/CHANGELOG.md',
silent: true
}, function (err) {
if (err) {
console.error(`standard-version failed with message: ${err.message}`)
Expand Down

0 comments on commit 832458a

Please sign in to comment.