node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

seq-lex

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