@redoxengine/medical-word-uuid
TypeScript icon, indicating that this package has built-in type declarations

1.2.5 • Public • Published

medical-word-uuid

generate fun, unique random IDs with medical terms

usage

uuid(length, appendNumber)

length - how many words to include. The wordlist is ~93k words so 2 words is 8.649 × 10^9 and 3 is 8.04357 × 10^14.

appendNumber - append an additonal 4 digits to the end to bump up uniqueness.

import {uuid} from @redoxengine/medical-word-uuid;
uuid()
'thermocoagulation-superficies'
uuid(3, true)
'envy-pegoxol-spongiositis-7384'

Wordlist is from glutanimate/wordlist-medicalterms-en I removed any with punctuation and lowercased everything cat data/wordlist.txt | grep -Eo '^[a-zA-Z0-9]+$' | awk '{print tolower($0)}' |awk '{ printf "\"%s\",\n", $0 }' > src/words.ts

Package Sidebar

Install

npm i @redoxengine/medical-word-uuid

Weekly Downloads

2

Version

1.2.5

License

Apache-2.0

Unpacked Size

6.12 MB

Total Files

27

Last publish

Collaborators

  • dindurthy
  • redox-cicd