Skip to content

Commit

Permalink
add substr function to features section
Browse files Browse the repository at this point in the history
  • Loading branch information
nainemom committed Apr 30, 2017
1 parent 394e5b7 commit 842330d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ wrong (hint: it should be 1!). ES6's `Array.from` tried to solve this, but that
- Limit string to width (truncate/pad)
- Unicode-aware string length
- Unicode-aware substring
- Unicode-aware substr

🔥 Please note that this library is built for accuracy, not performance. It uses complex regular expressions to
calculate the string length and perform other operations which are **not** particularly super-jawdropping-fast like
Expand All @@ -29,7 +30,7 @@ And import it in your awesome node app:
```javascript
// ES2015+
import * as stringz from 'stringz'; // OR:
import { limit, substring, length } from 'stringz';
import { limit, substring, length, substr } from 'stringz';

// CommonJS
var stringz = require('stringz');
Expand Down

0 comments on commit 842330d

Please sign in to comment.