+1
-1
@@ -74,3 +74,3 @@ { | ||
| }, | ||
| "version": "1.1.0" | ||
| "version": "1.1.1" | ||
| } |
+8
-4
| # incstr | ||
| Increment string or generate sequential string ids (node js / browser) | ||
| Increment strings or generate sequential string ids in node.js or browser | ||
| ## Usage | ||
| ### incstr | ||
| ``` | ||
| nextStr = incstr(str, [alphabet=incstr.alphabet], [numberlike=incstr.numberlike]) | ||
| nextStr = incstr(str, | ||
| [alphabet=incstr.alphabet], | ||
| [numberlike=incstr.numberlike]) | ||
| ``` | ||
| - `str` - string to increment; | ||
| - `alphabet` - alphabet to use (default `'A..Za..z0..9'`, v1 used `'0..9a..zA..Z'`); | ||
| - `alphabet` - alphabet to use (default `'A..Za..z0..9'`, v1.0.2 used `'0..9a..zA..Z'`); | ||
| - `numberlike` - `'BA'` after `'9'` instead of `'AA'`(default `false`); | ||
@@ -15,3 +19,3 @@ - default `alphabet` can be set through `incstr.alphabet`; | ||
| ### incstr.idGenerator | ||
| ``` | ||
@@ -18,0 +22,0 @@ nextId = incstr.idGenerator(options) |
6412
1.25%71
5.97%