@anio-js-foundation/alphabet-identifier-generator
v1.0.0
Published
Generate a sequence of identifiers that are represented by alphabet characters.
Downloads
23
Readme
@anio-js-foundation/alphabet-identifier-generator
Generate a sequence of identifiers that are represented by alphabet characters.
import AlphabetIdentifierGenerator from "@anio-js-foundation/alphabet-identifier-generator"
const generator = new AlphabetIdentifierGenerator()
// returns "a"
console.log(generator.insert("test_identifier_1"))
// returns "b"
console.log(generator.insert("test_identifier_2"))
// returns "a"
console.log(generator.lookup("test_identifier_1"))