{"name":"human-id","version":"1.0.0","description":"Returns a humand readable ID","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/safebyte/human-id.git"},"keywords":["human","readable","id"],"author":{"name":"RienNeVaPlus"},"license":"MIT","bugs":{"url":"https://github.com/safebyte/human-id/issues"},"homepage":"https://github.com/safebyte/human-id#readme","gitHead":"0c607d50fb649c4a62b60142fa144f3b95358bc2","_id":"human-id@1.0.0","_npmVersion":"5.0.0","_nodeVersion":"8.0.0","_npmUser":{"name":"safebyte","email":"riennevaplus@gmx.com"},"dist":{"integrity":"sha512-Aufp9KH8Q7MOqpA6W1OcvRAx+SJwIaxzpPKyVj++9DBf5epo9G4ED0n32MBIta7XyoiFt4rG4q7U/SLvSkAbXg==","shasum":"4de45416de5ca66b4134367d29f0d14d67d20084","tarball":"http://registry-npm.ywwl.com/human-id/download/human-id-1.0.0.tgz","fileCount":5,"unpackedSize":8414,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbCLvfCRA9TVsSAnZWagAAzqsP/A+9zD3u0dhVs88WTZDi\n5bIH09oILdeGW8aoOPAKOtk2yA2a4Bt3eCgal2ZM62nqaYirV6Egi2kK2fL0\nKhwNacuwk8Ex0gz8so5EcDctVza6U8nMrfwXa456DLbsieP+Ah+u24v29nx4\nbrzAuueUNKsieTE+fpnvty212DHBtBIcNDi3XdpWyPH90gzjopu5TJq3R6Yi\n7EMXjDtoe4pOvetl/sY+c4V/5kd4Opg9qpy46xdYjMjUBskHojdj/NjK7/e4\neulB+LSkk3R5wDHuEb37K0C1wqQ7l+XyaDbXU7c9sgYiABe2NmN3ZmQ2W2iC\nlt0ux4o1qL0Cg3MqyUd7xu0acR7cvvxpW+CB9qW4kX3wTj57pVotPFkM3SXV\nF5anuTK2O3iRuQ6NmosdTzgysZERB2yw6QrTWBkIdCYIap4aprxiX+GWVekO\n++mfnon8zjKTCa0aPjusWSIEhBmVtf8U1DjNnnmW59nPdf6kCx653bpkDD5M\ndhASI8Ydgjn2suDN5V/QijEQ6Vq+7dtxPp/SvWiSgX893dpeps5Qh1455FCU\n1RqfGAfZ+SbEocXxAARvLoD2TsZNWDsy1g3ttgeykS/K/QslNiE7Hx3zF/H0\naDaQGXtkicD0eAdCuIwGrwYEibe/WMSHY9GOZmdKxNU5oNaabxQt3CrDo0Hh\nGKJ2\r\n=OTNs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHnaEW8ZURSd0BoANBj9WQXTmb+GFxK430WkkYKc5szTAiA46aCaT8uR6w2AuWT3kGFPy1g1ezof7j6y0MRxRWxF3A=="}],"size":4275,"noattachment":false,"key":"/human-id/-/human-id-1.0.0.tgz"},"maintainers":[{"name":"safebyte","email":"riennevaplus@gmx.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/human-id_1.0.0_1527299038734_0.7504082726617367"},"_hasShrinkwrap":false,"readme":"<h3 align=\"center\">💃🆔</h3>\r\n\r\n## Human-Readable Identifiers\r\n\r\n![Downloads](https://img.shields.io/npm/dm/human-id)\r\n![License](https://img.shields.io/npm/l/human-id)\r\n\r\n> Using words to identify datasets (instead of numbers) provides various advantages when humans are involved, ie increased distinction and rememberability.\r\n\r\nHuman-ID generates readable strings by chaining common short words of the english language in a semi-meaningful way.\r\nThe result is concatenated of `adjective + noun + verb` resulting in a [minimum](#extended-pool-size) pool size of **15 000 000** possible combinations.\r\n\r\n- **SFW**: no bad words; family friendly results\r\n- No dependencies\r\n\r\n## Examples\r\n\r\n- FortyGhostsTalk\r\n- CalmSnailsDream\r\n- TastyRocksSparkle\r\n- HealthyCowsSmile\r\n- AfraidWallsExist\r\n- StrangeCarsRush\r\n- TwoLizardsSing\r\n- HappyLionsJump\r\n\r\n## Install\r\n\r\nYarn\r\n```\r\nyarn add human-id\r\n```\r\n\r\nNPM\r\n```\r\nnpm install human-id\r\n```\r\n\r\n## Usage\r\n\r\n### Command line\r\n\r\n```sh\r\nnpx human-id\r\n# RareGeckosJam\r\n\r\nnpx human-id lowercase + 2x\r\n# rare+geckos+jam\r\n# healthy+cows+smile\r\n```\r\n\r\n### Programmatic\r\n\r\n```js\r\nimport {humanId, poolSize, minLength, maxLength} from 'human-id'\r\n\r\n// RareGeckosJam\r\nhumanId()\r\n\r\n// Rare~Geckos~Jam\r\n// alias for { separator: '~' }\r\nhumanId('~')\r\n\r\n// rare-geckos-jam\r\nhumanId({\r\n  separator: '-',\r\n  capitalize: false,\r\n})\r\n\r\npoolSize()  // 15,000,000\r\nminLength() //          8\r\nmaxLength() //         19\r\n```\r\n\r\n## Extended Pool Size\r\n\r\nFor 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.\r\n\r\n```js\r\nconst options = {\r\n  adjectiveCount: 2,\r\n  addAdverb: true,\r\n  separator: '.'\r\n}\r\n\r\nhumanId(options)   // Ten.Wet.Files.Cheer.Lazily\r\npoolSize(options)  // 630,000,000\r\nminLength(options) //          20\r\nmaxLength(options) //          41\r\n```\r\n\r\n## Executable arguments\r\n\r\nUse the following arguments to modify the default options or print multiple results.\r\n\r\n| Argument                   | Effect                                            |\r\n| -------------------------- | ------------------------------------------------- |\r\n| `a`, `adverb`, `addAdverb` | Sets `option.addAdverb` to `true`                 |\r\n| `l`, `lower`, `lowercase`  | Sets `option.capitalize` to `false`               |\r\n| `space`                    | Sets `option.separator` to an empty space ` `     |\r\n| any number                 | Sets `option.adjectiveCount` to the given integer |\r\n| any single character       | Sets `option.separator` to the character          |\r\n| any number followed by `x` | Repeats the output `number` times                 | \r\n\r\n### Example\r\n\r\n```bash\r\nnpx human-id adverb lower 2 _ 3x\r\n# clever_shaggy_memes_sit_quietly\r\n# cuddly_spicy_boxes_wave_politely\r\n# sweet_fair_wombats_fetch_bravely\r\n```\r\n\r\n## API\r\n\r\n#### `humanId(options?: string | Option): string`\r\nGenerates a human ID. **Options** can be a `string` (separator), a `boolean` (capitalize) or an `Options` object of:\r\n- **separator** `string = ''` - Separates the words from each other\r\n- **capitalize** `boolean = true` - Whether to transform the first character of each word to upper case\r\n- **adjectiveCount** `number = 1` - How many adjectives to return\r\n- **addAdverb** `boolean = false` - Adds a fourth part to the id\r\n\r\n*This function is also available as the default export*\r\n\r\n#### `poolSize(options?: string | Option): number`\r\nReturns the number of possible combinations for a given set of options.\r\n\r\n#### `minLength(options?: Option): number`\r\nThe length of the shortest possible id for a given set of options.\r\n\r\n#### `maxLength(options?: Option): number`\r\nThe length of the longest possible id for a given set of options.\r\n\r\n#### `adjectives: string[]`\r\nList of possible values for the first part of the human id.\r\n\r\n#### `nouns: string[]`\r\nList of possible values for the second part of the human id.\r\n\r\n#### `verbs: string[]`\r\nList of possible values for the third part of the human id.\r\n\r\n#### `adverbs: string[]`\r\nList of possible values for the optional fourth part of the human id.\r\n\r\n\r\n<h6 align=\"center\">💃🆔</h6>\r\n\r\n","publish_time":1527299038827,"_cnpm_publish_time":1527299038827,"dist-tags":{"latest":"4.2.2"}}