
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
Using words to identify datasets (instead of numbers) provides various advantages when humans are involved, ie increased distinction and rememberability.
Human-ID generates readable strings by chaining common short words of the english language in a semi-meaningful way.
The result is concatenated of adjective + noun + verb resulting in a minimum pool size of 15 000 000 possible combinations.
Yarn
yarn add human-id
NPM
npm install human-id
npx human-id
# RareGeckosJam
npx human-id lowercase + 2x
# rare+geckos+jam
# healthy+cows+smile
import {humanId, poolSize, minLength, maxLength} from 'human-id'
// RareGeckosJam
humanId()
// Rare~Geckos~Jam
// alias for { separator: '~' }
humanId('~')
// rare-geckos-jam
humanId({
separator: '-',
capitalize: false,
})
poolSize() // 15,000,000
minLength() // 8
maxLength() // 19
For most cases, the default pool size should be large enough. However, the options adjectiveCount and addAdverb can be utilized to increase the pool size for the price of the string length.
const options = {
adjectiveCount: 2,
addAdverb: true,
separator: '.'
}
humanId(options) // Ten.Wet.Files.Cheer.Lazily
poolSize(options) // 630,000,000
minLength(options) // 20
maxLength(options) // 41
Use the following arguments to modify the default options or print multiple results.
| Argument | Effect |
|---|---|
a, adverb, addAdverb | Sets option.addAdverb to true |
l, lower, lowercase | Sets option.capitalize to false |
space | Sets option.separator to an empty space |
| any number | Sets option.adjectiveCount to the given integer |
| any single character | Sets option.separator to the character |
any number followed by x | Repeats the output number times |
npx human-id adverb lower 2 _ 3x
# clever_shaggy_memes_sit_quietly
# cuddly_spicy_boxes_wave_politely
# sweet_fair_wombats_fetch_bravely
humanId(options?: string | Option): stringGenerates a human ID. Options can be a string (separator), a boolean (capitalize) or an Options object of:
string = '' - Separates the words from each otherboolean = true - Whether to transform the first character of each word to upper casenumber = 1 - How many adjectives to returnboolean = false - Adds a fourth part to the idThis function is also available as the default export
poolSize(options?: string | Option): numberReturns the number of possible combinations for a given set of options.
minLength(options?: Option): numberThe length of the shortest possible id for a given set of options.
maxLength(options?: Option): numberThe length of the longest possible id for a given set of options.
adjectives: string[]List of possible values for the first part of the human id.
nouns: string[]List of possible values for the second part of the human id.
verbs: string[]List of possible values for the third part of the human id.
adverbs: string[]List of possible values for the optional fourth part of the human id.
FAQs
Returns from a pool of 15m human-readable IDs
The npm package human-id receives a total of 3,306,158 weekly downloads. As such, human-id popularity was classified as popular.
We found that human-id demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.