Skip to content

Commit

Permalink
Fix usage of semver module in docs
Browse files Browse the repository at this point in the history
Previously the docs displayed only installing the `semver` module and not going into a node shell or requiring the module before displaying examples.

I think this update makes it a little clearer that `semver` is a standard node module and it is used internally in `npm`.

First made change over at npm/npm#10765 but was pointed in the direction of this repo as the source of those docs.
  • Loading branch information
domharrington authored and isaacs committed Jun 28, 2016
1 parent f7fef36 commit 4bdb8f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ semver(1) -- The semantic versioner for npm
## Usage

$ npm install semver
$ node
var semver = require('semver')

semver.valid('1.2.3') // '1.2.3'
semver.valid('a.b.c') // null
Expand Down

0 comments on commit 4bdb8f4

Please sign in to comment.