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.

5 lines (4 loc) 105 B
/** * Generate a numeric 32 bit hash of a string */ export default function hash(str: string): number;