{"id":19621349,"url":"https://github.com/commenthol/pwdgen","last_synced_at":"2026-06-07T21:01:22.041Z","repository":{"id":186443248,"uuid":"675194559","full_name":"commenthol/pwdgen","owner":"commenthol","description":"Generates a random and secure password; With CLI","archived":false,"fork":false,"pushed_at":"2023-08-06T05:22:45.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T00:08:35.379Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/commenthol.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}},"created_at":"2023-08-06T05:12:35.000Z","updated_at":"2023-08-06T05:14:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"d964e460-69a5-45a8-8a19-066b77b86ac2","html_url":"https://github.com/commenthol/pwdgen","commit_stats":null,"previous_names":["commenthol/pwdgen"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/commenthol/pwdgen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fpwdgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fpwdgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fpwdgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fpwdgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/commenthol","download_url":"https://codeload.github.com/commenthol/pwdgen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fpwdgen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34037777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-07T02:00:07.652Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-11-11T11:22:27.405Z","updated_at":"2026-06-07T21:01:21.610Z","avatar_url":"https://github.com/commenthol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pwdgen\n\n\u003e Generates a random and secure password; With CLI\n\n[![npm-badge][npm-badge]][npm]\n![types-badge][types-badge]\n\n## Usage\n\n    npm i -g @commenthol/pwdgen\n\n## CLI\n\n    pwdgen [options]\n\n    Generates a random and secure password.\n\n    -h|--help                   This help text\n    -l|--length \u003cnumber\u003e        Length of password. Default is 20\n    -0|--no-digits              Do not use digits\n    -U|--no-upper               Do not use uppercase characters\n    -L|--no-lower               Do not use lowercase characters\n    -S|--no-symbols             Do not use symbols\n    -s|--safe-symbols           Use safe symbols\n    -e|--ext                    Use extended symbols and characters\n    -r|--remove-chars \u003cstring\u003e  Remove chars from allowed chars\n    -a|--alphabet \u003cstring\u003e      Use alphabet only\n\n## API\n\n```js \nimport { generate } from '@commenthol/pwdgen'\n\nconst options = { length: 30 }\ngenerate(options)\n```\n\n**options**\n\n```ts\nexport type PwdGenOptions = {\n    /**\n     * length of password\n     */\n    length?: number | undefined;\n    /**\n     * use digits\n     */\n    digits?: boolean | undefined;\n    /**\n     * use uppercase characters\n     */\n    uppercase?: boolean | undefined;\n    /**\n     * use lowercase cha\n     */\n    lowercase?: boolean | undefined;\n    /**\n     * use safe symbols only\n     */\n    symbolsSafe?: boolean | undefined;\n    /**\n     * use symbols\n     */\n    symbols?: boolean | undefined;\n    /**\n     * use extended symbols\n     */\n    symbolsExt?: boolean | undefined;\n    /**\n     * use extended character set\n     */\n    charsExt?: boolean | undefined;\n    /**\n     * exclude characters\n     */\n    excludeChars?: string | undefined;\n    /**\n     * provide alphabet of allowed chars\n     */\n    alphabet?: string | undefined;\n};\n```\n\n## License\n\nMIT License\n\nSee [LICENSE][] for more info.\n\n[LICENSE]: ./LICENSE\n[npm-badge]: https://badgen.net/npm/v/@commenthol/pwdgen\n[npm]: https://www.npmjs.com/package/@commenthol/pwdgen\n[types-badge]: https://badgen.net/npm/types/@commenthol/pwdgen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommenthol%2Fpwdgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommenthol%2Fpwdgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommenthol%2Fpwdgen/lists"}