Gathering detailed insights and metrics for mnemonic-id
Gathering detailed insights and metrics for mnemonic-id
Gathering detailed insights and metrics for mnemonic-id
Gathering detailed insights and metrics for mnemonic-id
npm install mnemonic-id
Typescript
Module System
Node Version
NPM Version
TypeScript (94.84%)
JavaScript (5.16%)
Total Downloads
2,788,715
Last Day
14,482
Last Week
49,533
Last Month
302,289
Last Year
2,362,390
11 Stars
43 Commits
3 Forks
2 Watching
20 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
3.2.7
Package Id
mnemonic-id@3.2.7
Unpacked Size
19.58 kB
Size
7.28 kB
File Count
11
NPM Version
6.14.5
Node Version
14.3.0
Cumulative downloads
Total Downloads
Last day
-12.8%
14,482
Compared to previous day
Last week
-36.4%
49,533
Compared to previous week
Last month
16.1%
302,289
Compared to previous month
Last year
517.6%
2,362,390
Compared to previous year
Library to generate easy to remember, and sometimes entertaining, human readable ids.
1createStoryId(); // -> awesome-chipmunk-banish-evil-rat
Partly inspired by Docker name generator and major mnemonic system.
1$ npm install mnemonic-id
Import in either way that suits your environment:
1import { createNameId } from 'mnemonic-id'; 2createNameId();
1import * as mnemonicId from 'mnemonic-id'; 2mnemonicId.createNameId();
1const mnemonicId = require('mnemonic-id'); 2mnemonicId.createNameId();
Then select one of the existing id formats:
1/** "noun", ≈ 10^2 permutations, 10 max length */ 2createNounId(); // -> narwhal 3 4/** "adj+noun", ≈ 10^5 permutations, 19 max length */ 5createNameId(); // -> hungry-hippo 6 7/** "adj+adj+noun", ≈ 10^6 permutations, 28 max length */ 8createLongNameId(); // -> hot-splendid-duck 9 10/** "adj+noun+id", ≈ 10^14 permutations, 26 max length */ 11createUniqueNameId(); // -> dull-dugong-QkCHmf 12 13/** "verb+adj+noun", ≈ 10^6 permutations, 28 max length */ 14createQuestId(); // -> find-pretty-sheep 15 16/** "adj+noun+verb+adj+noun", ≈ 10^12 permutations, 48 max length */ 17createStoryId(); // -> eloquent-beaver-quote-unknown-dinosaur 18 19/** "adj+adj+noun+verb+adj+adj+noun", ≈ 10^17 permutations, 64 max length */ 20createLongStoryId(); // -> wicked-evil-eel-help-horrible-pretty-hamster 21 22/** "number" of given length, length^10 - length^9 permutations */ 23createNumberId(10); // -> 6941634647 (= 10^10-10^9 permutations) 24 25/** "id" of given length, = 40^length permutations */ 26createId(10); // -> uXOGTUiOoD (= 40^10 ≈ 10^16 permutations)
Or customize your own:
1createCustomId({
2 adjectives: 2,
3 subject: true,
4 verb: true,
5 object: true,
6 numberSuffix: 4,
7 idSuffix: 6,
8 delimiter: '_',
9 capitalize: true
10}); // -> Talented_Bold_Pig_Hunt_Brawny_Supreme_Bumblebee_6343_VQ5EAZ
Most existing formats can also be customized:
1createNameId({
2 adjectives: 3,
3 capitalize: true
4 delimiter: '',
5}); // -> OrdinaryCuddlyLaughingSquid
Description of options:
1interface IdOpts { 2 /** Number of adjectives given to object/subject */ 3 adjectives?: number; 4 /** Creates subject in id sentence */ 5 subject?: boolean; 6 /** Creates verb in id sentence */ 7 verb?: boolean; 8 /** Creates object in id sentence */ 9 object?: boolean; 10 /** Creates number of given length at end of id sentence */ 11 numberSuffix?: number; 12 /** Creates id of given length at end of id sentence */ 13 idSuffix?: number; 14 /** Delimiter to be used in id sentence */ 15 delimiter?: string; 16 /** Capitalize each word in sentence */ 17 capitalize?: boolean; 18}
Similar libraries that also exist:
Licensed under MIT.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
45 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More@rsksmart/rif-id-mnemonic
RIF Identity - mnemonic
rif-id-mnemonic
This package is left empty on purpose for security reasons. If you're looking for an IOVLabs (RSKLabs) related package check [@rsksmart/rif-id-mnemonic](https://www.npmjs.com/package/@rsksmart/rif-id-mnemonic)
@getin-id/bip39
Secure, audited & minimal implementation of BIP39 mnemonic phrases
rerumplaceat
ethereum-hdwallet