Skip to content

Commit

Permalink
update the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
A committed Apr 18, 2015
1 parent 6765cea commit ebfc538
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ tf = textr({ locale: 'ru'})
.use(ellipses)
.use(spaces)
.use(quotes)
.use(String.prototype.trim)
;

// then just send some text to the transformer
tf('Hello "world"...'); // Hello «world»…
tf('Hello "world"...\n'); // Hello «world»…
```

## API
Expand Down Expand Up @@ -101,6 +102,9 @@ function plugin(text, options) {
}
```

To support `String.prototype` methods as transformation functions, `this` value
is equal to the `text`.


## License

Expand Down

0 comments on commit ebfc538

Please sign in to comment.