Permalink
Browse files

Updates README to show actual behavior of semver.valid

  • Loading branch information...
1 parent 5b28db0 commit 16197e3f1e5f3938e3e67b37bdba545fdb5a485e @repeatingbeats repeatingbeats committed with isaacs Oct 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -5,8 +5,8 @@ semver(1) -- The semantic versioner for npm
$ npm install semver
- semver.valid('1.2.3') // true
- semver.valid('a.b.c') // false
+ semver.valid('1.2.3') // '1.2.3'
+ semver.valid('a.b.c') // null
semver.clean(' =v1.2.3 ') // '1.2.3'
semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true
semver.gt('1.2.3', '9.8.7') // false

0 comments on commit 16197e3

Please sign in to comment.