Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
simple-human-ids
Advanced tools
Use JavaScript to generate human-readable ids from a lists of adjectives, nouns, and verbs.
Generate ids in the format of #-adjective-noun-verb-adverb
such as
I frequently want human readable ids I can type without checking it multiple times. I should be able to yell these ids across the room and have people be able to enter it without confusion.
Currently the id space is about 200,000,000 ids (100 * 100 * 75 * 18 * 15).
The goal is to increase the word space to at least 1 billion while preserving the philosophy that the id would be human readable and simple to spell.
For a larger address space now, consider:
All of these also have the benefit of bi-directional conversion, but not all of them have words which are easy to pronounce and spell.
# from npm
npm install --save simple-human-ids
const id = require('simple-human-id');
// generate 100 random ids
for ( let i = 0; i < 100; i++ ) {
console.log( id.new() );
}
You are also able to configure your own lists to use
const id = require( 'simple-human-ids' );
const numbers = [ 3, 5, 9, ... ];
const adjectives = [ 'soft', 'hard', 'wet', ... ];
const nouns = [ 'goose', 'chicken', 'ship', ... ];
const lists = id.construct( numbers, adjectives, nouns );
id.configure( lists );
for( let i = 0; i < 100; i++ ){
console.log( id.new() );
}
This project was as effort to expand on CoolAJ87's Human Readable IDs project.
FAQs
Generate human-readable ids from lists of easy-to-spell words
The npm package simple-human-ids receives a total of 1 weekly downloads. As such, simple-human-ids popularity was classified as not popular.
We found that simple-human-ids demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.