seq-lex

Creates or increments the value of a lexicographically sortable string

SYNOPSIS

Creates or increments the value of a lexicographically sortable string

MOTIVATION

Useful for creating sequential keys in leveldb

USAGE

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