Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/heapwolf/seq-lex

Creates or increments the value of a lexicographically sortable string. useful for creating sequential keys in leveldb
https://github.com/heapwolf/seq-lex

Last synced: 25 days ago
JSON representation

Creates or increments the value of a lexicographically sortable string. useful for creating sequential keys in leveldb

Awesome Lists containing this project

README

        

# SYNOPSIS
Creates or increments the value of a lexicographically sortable string

# MOTIVATION
Useful for creating sequential keys in leveldb

# USAGE

```js
var x = lexseq();
console.log(x.charCodeAt(0)); // 0

x = lexseq(x);
console.log(x.charCodeAt(0)); // 1
```