{"id":15829649,"url":"https://github.com/hellofaizan/arandomword","last_synced_at":"2026-01-19T16:33:10.639Z","repository":{"id":251779595,"uuid":"838462275","full_name":"hellofaizan/arandomword","owner":"hellofaizan","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-05T17:55:51.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T10:38:17.581Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hellofaizan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":"hellofaizan","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-08-05T17:30:56.000Z","updated_at":"2024-08-05T17:55:54.000Z","dependencies_parsed_at":"2024-08-05T18:45:44.437Z","dependency_job_id":null,"html_url":"https://github.com/hellofaizan/arandomword","commit_stats":null,"previous_names":["hellofaizan/arandomword"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hellofaizan/arandomword","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellofaizan%2Farandomword","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellofaizan%2Farandomword/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellofaizan%2Farandomword/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellofaizan%2Farandomword/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellofaizan","download_url":"https://codeload.github.com/hellofaizan/arandomword/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellofaizan%2Farandomword/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28574400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T16:29:19.148Z","status":"ssl_error","status_checked_at":"2026-01-19T16:29:17.772Z","response_time":67,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-10-05T11:01:30.361Z","updated_at":"2026-01-19T16:33:10.623Z","avatar_url":"https://github.com/hellofaizan.png","language":"JavaScript","funding_links":["https://github.com/sponsors/hellofaizan","https://www.buymeacoffee.com/hellofaizan"],"categories":[],"sub_categories":[],"readme":"# Random word generator\n\n### A random word generator mainly being used for [FindSaaS](https://findsaas.vercel.app)\n\n# Install Package 📦\n\nInstall the dependencies and devDependencies and start the server.\n\n```sh\nnpm install arandomword\n```\n\n## Usage ✨\n\n```js\nimport { generate } from \"arandomword\";\n\n\nconsole.log(generate());\n//output: 'wild'\n```\n\n## Donations ☕\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/hellofaizan)\n\n## Other Uses\n\n```js\nconsole.log(generate(5));\n//output: ['wild', 'beautiful', 'became', 'wrapped', 'actually']\n\nconsole.log(generate({ minLength: 5, maxLength: 5 }));\n//output : 'world'\n\nconsole.log(generate({ min: 3, max: 10 })); // the number of words in an array\n//output: ['became', 'arrow', 'article', 'therefore']\n\nconsole.log(generate({ exactly: 2 })); // just 2\n//output: ['beside', 'between']\n\nconsole.log(generate({ exactly: 5, join: \" \" }));\n//output: 'army beautiful became if exactly'\n\nconsole.log(generate({ exactly: 5, join: \"\" }));\n//output: 'armybeautifulbecameifexactly'\n\nconsole.log(generate({ exactly: 2, minLength: 4 })); // min length of each word also works with maxLength\n//output: ['atom', 'window']\n\nconsole.log(generate({ exactly: 2, minLength: 3, maxLength: 3 }));\n//output: ['you, 'are']\n\nconsole.log(generate({ exactly: 5, wordsPerString: 2 }));\n//output: [ 'salt practical', 'also brief', 'country muscle', 'neighborhood beyond', 'grew pig' ]\n\nconsole.log(generate({ exactly: 5, wordsPerString: 2, separator: \"-\" }));\n//output: [ 'equator-variety', 'salt-usually', 'importance-becoming', 'stream-several', 'goes-fight' ]\n\nconsole.log(\n  generate({\n    exactly: 5,\n    wordsPerString: 2,\n    formatter: (word) =\u003e word.toUpperCase(),\n  })\n);\n//output: [ 'HAVING LOAD', 'LOST PINE', 'GAME SLOPE', 'SECRET GIANT', 'INDEED LOCATION' ]\n\nconsole.log(\n  generate({\n    exactly: 5,\n    wordsPerString: 2,\n    formatter: (word, index) =\u003e {\n      return index === 0\n        ? word.slice(0, 1).toUpperCase().concat(word.slice(1))\n        : word;\n    },\n  })\n);\n//output: [ 'Until smoke', 'Year strength', 'Pay knew', 'Fallen must', 'Chief arrow' ]\n\nconsole.log(count());\n//output: 1952\n\nconsole.log(count({ minLength: 5 }));\n//output: 1318 \n\nconsole.log(count({ maxLength: 7 }));\n//output: 1649\n\nconsole.log(count({ minLength: 5, maxLength: 7 }));\n//output: 1015\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellofaizan%2Farandomword","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellofaizan%2Farandomword","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellofaizan%2Farandomword/lists"}