Skip to content

Commit

Permalink
docs(readme): 📝 update code usage (#290)
Browse files Browse the repository at this point in the history
Fixes #288
  • Loading branch information
huruji authored and stevemao committed Dec 25, 2018
1 parent 6826945 commit cbedc52
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,18 +245,18 @@ Use the `silent` option to stop `standard-version` from printing anything
to the console.

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

// Options are the same as command line, except camelCase
// standardVersion returns a Promise
standardVersion({
noVerify: true,
infile: 'docs/CHANGELOG.md',
silent: true
}, function (err) {
if (err) {
console.error(`standard-version failed with message: ${err.message}`)
}
}).then(() => {
// standard-version is done
}).catch(err => {
console.error(`standard-version failed with message: ${err.message}`)
})
```

Expand Down

0 comments on commit cbedc52

Please sign in to comment.