Skip to content

DraviaVemal/alias-key-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alias Key Generator

This package enables the generation of unique alias name . The default UID generated are considred for SQL keywords to avoid query conflict. End user can update the options to configure as per the need

Installation

You can install this package via npm:

npm i alias-key-gen

Usage

import { AliasKeyGen } from "alias-key-gen";

const aliasKeyGen = new AliasKeyGen({
    charString: "abcdfghjkmpqxz",
    extendNumberSequenceSuffix: {
        enableNumSeq: true,
        maxNumberSeq: 9
    },
    startSequence: "ab5"
});
console.log(aliasKeyGen.next());
console.log(aliasKeyGen.next());
# Output is
a
b

Contribution

Contributions are welcome! If you encounter issues or have suggestions for improvements, feel free to open an issue or submit a pull request on GitHub.

License

This package is licensed under the MIT License.

Contact

For inquiries or support, please contact contact@draviavemal.com.

About

tracked unique key generator

Topics

Resources

License

Stars

Watchers

Forks