Skip to content

Commit 832458a

Browse files
committed
docs(readme): add silent option example to code usage section
1 parent e68bd6b commit 832458a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,17 @@ standard-version --help
122122

123123
## Code usage
124124

125+
Use the `silent` option to stop `standard-version` from printing anything
126+
to the console.
127+
125128
```js
126129
var standardVersion = require('standard-version')
127130

128131
// Options are the same as command line, except camelCase
129132
standardVersion({
130133
noVerify: true,
131-
infile: 'docs/CHANGELOG.md'
134+
infile: 'docs/CHANGELOG.md',
135+
silent: true
132136
}, function (err) {
133137
if (err) {
134138
console.error(`standard-version failed with message: ${err.message}`)

0 commit comments

Comments
 (0)