Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,9 @@ $ semver 1.2.4-beta.1 -i release

#### Prerelease Identifier Base

The method `.inc` takes an optional parameter 'identifierBase' string
that will let you let your prerelease number as zero-based or one-based.
Set to `false` to omit the prerelease number altogether.
If you do not specify this parameter, it will default to zero-based.
The `.inc` method accepts an optional `identifierBase` argument. It can
start prerelease numbering at zero or one; set it to `false` to omit the
number. If omitted, it defaults to zero-based numbering.

```javascript
semver.inc('1.2.3', 'prerelease', 'beta', '1')
Expand Down