UNPKG

generate-alphabetic-name

Version:

Take an arbitrary string or integer and generate a short alphabetic code. It works in the browser and node.js and is designed to be as small as possible, and extremely fast.

11 lines (10 loc) 390 B
import generateAlphabeticNameFromNumber from './generateAlphabeticNameFromNumber'; import hash from './hash'; export { hash, generateAlphabeticNameFromNumber }; /** * Take an arbitrary string or number and generate a short * alphabetic code for it using only characters in /[a-zA-Z]+/ * * @param input */ export default function generateAlphabeticName(input: string | number): string;