{"id":13559180,"url":"https://github.com/Atrox/haikunatorjs","last_synced_at":"2025-04-03T14:31:29.427Z","repository":{"id":746058,"uuid":"32401696","full_name":"Atrox/haikunatorjs","owner":"Atrox","description":"Generate Heroku-like random names to use in your node applications.","archived":false,"fork":false,"pushed_at":"2024-07-01T12:40:53.000Z","size":1525,"stargazers_count":257,"open_issues_count":8,"forks_count":23,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-29T10:46:01.234Z","etag":null,"topics":["haikunator","heroku","javascript","nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/haikunator","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Atrox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-03-17T15:22:24.000Z","updated_at":"2024-09-01T15:27:49.000Z","dependencies_parsed_at":"2024-05-01T14:05:03.004Z","dependency_job_id":"4065cd74-9d17-4859-82fc-8232b18c7b88","html_url":"https://github.com/Atrox/haikunatorjs","commit_stats":{"total_commits":156,"total_committers":9,"mean_commits":"17.333333333333332","dds":0.7051282051282051,"last_synced_commit":"7746a55cef5970874c322e2de88062215daa6577"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atrox%2Fhaikunatorjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atrox%2Fhaikunatorjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atrox%2Fhaikunatorjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atrox%2Fhaikunatorjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Atrox","download_url":"https://codeload.github.com/Atrox/haikunatorjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222978323,"owners_count":17067506,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["haikunator","heroku","javascript","nodejs"],"created_at":"2024-08-01T12:05:24.401Z","updated_at":"2024-11-04T10:31:08.311Z","avatar_url":"https://github.com/Atrox.png","language":"TypeScript","readme":"# HaikunatorJS\n\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fatrox%2Fhaikunatorjs%2Fbadge\u0026style=flat-square)](https://actions-badge.atrox.dev/atrox/haikunatorjs/goto)\n[![Latest Version](https://img.shields.io/npm/v/haikunator.svg?style=flat-square)](https://www.npmjs.com/package/haikunator)\n[![JSR Version](https://img.shields.io/jsr/v/%40atrox/haikunator?style=flat-square)](https://jsr.io/@atrox/haikunator)\n[![Coverage Status](https://img.shields.io/codecov/c/github/Atrox/haikunatorjs.svg?style=flat-square)](https://codecov.io/gh/Atrox/haikunatorjs)\n\nGenerate Heroku-like random names to use in your node applications.\n\n## Installation\n\n```\nnpm install --save haikunator\n```\n\n```\ndeno add @atrox/haikunator\n```\n\n## Usage\n\nHaikunator is pretty simple.\n\n```javascript\nimport Haikunator from 'haikunator'\n\n// Instantiate Haikunator without options\nvar haikunator = new Haikunator()\n\n// Instantiate Haikunator with default options\nvar customHaikunator = new Haikunator({\n  adjectives: ['custom', 'adjectives'],\n  nouns: ['custom', 'nouns'],\n  seed: 'custom-seed',\n\n  // class defaults\n  defaults: {\n    tokenLength: 8,\n    tokenChars: 'HAIKUNATOR',\n    // ...\n  },\n})\n\n// default usage\nhaikunator.haikunate() // =\u003e \"wispy-dust-1337\"\n\n// custom length (default=4)\nhaikunator.haikunate({ tokenLength: 6 }) // =\u003e \"patient-king-887265\"\n\n// use hex instead of numbers\nhaikunator.haikunate({ tokenHex: true }) // =\u003e \"purple-breeze-98e1\"\n\n// use custom chars instead of numbers/hex\nhaikunator.haikunate({ tokenChars: 'HAIKUNATE' }) // =\u003e \"summer-atom-IHEA\"\n\n// don't include a token\nhaikunator.haikunate({ tokenLength: 0 }) // =\u003e \"cold-wildflower\"\n\n// use a different delimiter\nhaikunator.haikunate({ delimiter: '.' }) // =\u003e \"restless.sea.7976\"\n\n// no token, space delimiter\nhaikunator.haikunate({ tokenLength: 0, delimiter: ' ' }) // =\u003e \"delicate haze\"\n\n// no token, empty delimiter\nhaikunator.haikunate({ tokenLength: 0, delimiter: '' }) // =\u003e \"billowingleaf\"\n```\n\n## Options\n\nThe following options are available:\n\n```javascript\nimport Haikunator from 'haikunator'\n\nvar haikunator = new Haikunator({\n  adjectives: ['custom', 'adjectives'],\n  nouns: ['custom', 'nouns'],\n  seed: 'custom-seed', // Custom seed\n\n  // Class wide defaults, can get overridden by haikunate(options)\n  defaults: {\n    delimiter: '-',\n    tokenLength: 4,\n    tokenHex: false,\n    tokenChars: '0123456789',\n  },\n})\n\n// Same options are also available on the haikunate method\nhaikunator.haikunate({\n  delimiter: '-',\n  tokenLength: 4,\n  tokenHex: false,\n  tokenChars: '0123456789',\n})\n```\n\n_If `tokenHex` is true, any tokens specified in `tokenChars` are ignored_\n\n## Contributing\n\nEveryone is encouraged to help improve this project. Here are a few ways you can help:\n\n- [Report bugs](https://github.com/atrox/haikunatorjs/issues)\n- Fix bugs and [submit pull requests](https://github.com/atrox/haikunatorjs/pulls)\n- Write, clarify, or fix documentation\n- Suggest or add new features\n\n## Other Languages\n\nHaikunator is also available in other languages. Check them out:\n\n- .NET: https://github.com/Atrox/haikunator.net\n- Python: https://github.com/Atrox/haikunatorpy\n- PHP: https://github.com/Atrox/haikunatorphp\n- Java: https://github.com/Atrox/haikunatorjava\n- Go: https://github.com/Atrox/haikunatorgo\n- Perl: https://github.com/Atrox/haikunatorperl\n- Dart: https://github.com/Atrox/haikunatordart\n- Ruby: https://github.com/usmanbashir/haikunator\n- Rust: https://github.com/nishanths/rust-haikunator\n","funding_links":[],"categories":["TypeScript","nodejs"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAtrox%2Fhaikunatorjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAtrox%2Fhaikunatorjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAtrox%2Fhaikunatorjs/lists"}