0.4.0 • Published 3 months ago

@termsurf/tone-code v0.4.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

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 @termsurf/tone-code
yarn add @termsurf/tone-code
npm i @termsurf/tone-code

Example

import { make4, make32 } from '@termsurf/tone-code'

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

License

MIT

TermSurf

This is being developed by the folks at TermSurf, a California-based project for helping humanity master information and computation. TermSurf started off in the winter of 2008 as a spark of an idea, to forming a company 10 years later in the winter of 2018, to a seed of a project just beginning its development phases. It is entirely bootstrapped by working full time and running Etsy and Amazon shops. Also find us on Facebook, Twitter, and LinkedIn. Check out our other GitHub projects as well!