You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

incstr

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

incstr - npm Package Compare versions

Comparing version
1.1.0
to
1.1.1
+1
-1
package.json

@@ -74,3 +74,3 @@ {

},
"version": "1.1.0"
"version": "1.1.1"
}
# 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)