@tunebond/form-code
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@tunebond/form-code

Generate pseudorandom keys and such for DB IDs or whatever else IDs. Not secure, it's not supposed to be secure, just here to make it appear non-sequential to the average person :).

pnpm add @tunebond/form-code
yarn add @tunebond/form-code
npm i @tunebond/form-code

Example

import { make4, make32 } from '@tunebond/form-code'

console.log(make4(256n)) // => MHZL
console.log(make32(256n)) // => ZFHDWMVBWWZXKZKTFSTVFHXNWWDVVKCM

Readme

Keywords

none

Package Sidebar

Install

npm i @tunebond/form-code

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

4.03 kB

Total Files

4

Last publish

Collaborators

  • lancejpollard