Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gertd committed Jun 12, 2019
1 parent 6b228c3 commit b58cdb4
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ Pluralize and singularize any word
# Version mapping

The latest go-pluralize version is compatible with [pluralize](https://www.npmjs.com/package/pluralize) version 7.0.0 commit [#8a989b7](https://github.com/blakeembrey/pluralize/commit/8a989b7dbe9ff145201be5af360c0694eadab5ff)
The latest go-pluralize version is compatible with [pluralize](https://www.npmjs.com/package/pluralize) version 8.0.0 commit [#0265e4d](https://github.com/blakeembrey/pluralize/commit/0265e4d131ecad8e11c420fa4be98b75dc92c33d)

| go-pluralize version | NPM Pluralize Package version |
| ------------- | ------------- |
| 0.0.1 - Apr 17, 2019 [v0.0.1](https://github.com/gertd/go-pluralize/tree/v0.0.1) | 7.0.0 - Apr 14, 2019 [#8a989b7](https://github.com/blakeembrey/pluralize/commit/8a989b7dbe9ff145201be5af360c0694eadab5ff) |
| 0.0.2 - Jun 12, 2019 [v0.0.2]() | 8.0.0 - May 24, 2019 [#0265e4d](https://github.com/blakeembrey/pluralize/commit/0265e4d131ecad8e11c420fa4be98b75dc92c33d)
| 0.1.0 - Jun 12, 2019 [v0.1.0](https://github.com/gertd/go-pluralize/tree/v0.1.0) | 8.0.0 - May 24, 2019 [#0265e4d](https://github.com/blakeembrey/pluralize/commit/0265e4d131ecad8e11c420fa4be98b75dc92c33d)

# Installation

Expand All @@ -29,7 +28,7 @@ To install the go module:

To lock down a specific the version:

go get -u github.com/gertd/go-pluralize@0.0.2
go get -u github.com/gertd/go-pluralize@0.1.0

Download the sources and binaries from the latest [release](https://github.com/gertd/go-pluralize/releases/latest)

Expand Down Expand Up @@ -75,30 +74,30 @@ Download the sources and binaries from the latest [release](https://github.com/g
-word string
input value


### Version
pluralize -version
pluralize - v0.0.2-dirty@2fda4a2 [2019-06-12T16:32:17-0700].[linux].[amd64]

### Word with All Commands
pluralize -word Empire

IsPlural(Empire) => false
IsSingular(Empire) => true
Plural(Empire) => Empires
Singular(Empire) => Empire

### Is Word Plural?
pluralize -word Cactus -cmd IsPlural

IsPlural(Cactus) => false

### Is Word Singular?
pluralize -word Cacti -cmd IsSingular

IsSingular(Cacti) => false

### Word Make Plural
pluralize -word Cactus -cmd Plural

Plural(Cactus) => Cacti

### Word Make Singular
pluralize -word Cacti -cmd Singular

Singular(Cacti) => Cactus

0 comments on commit b58cdb4

Please sign in to comment.