{"id":28092391,"url":"https://github.com/ahmadjoya/generate-password-lite","last_synced_at":"2025-05-13T13:10:03.639Z","repository":{"id":62917138,"uuid":"562951762","full_name":"ahmadjoya/generate-password-lite","owner":"ahmadjoya","description":"generate-password-lite is usable for every javascript and typescript based project like react, vue, node, etc. it used to generate passwords that may contain alphabets, number and symbols. The options parameter enables the user to enable or disable the characters that are used to generate random password.","archived":false,"fork":false,"pushed_at":"2025-03-25T06:06:32.000Z","size":90,"stargazers_count":36,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T16:52:02.858Z","etag":null,"topics":["angular","generate-password","javascript","js-library","nodejs","password-generator","reactjs","vuejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ahmadjoya.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,"zenodo":null}},"created_at":"2022-11-07T15:45:09.000Z","updated_at":"2025-03-25T06:06:36.000Z","dependencies_parsed_at":"2025-04-24T18:44:24.463Z","dependency_job_id":"534c2c4f-9e36-4615-acc7-bf39cf1cd931","html_url":"https://github.com/ahmadjoya/generate-password-lite","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.4,"last_synced_commit":"62f0329aeb70a9e2014eb4c38f87a62db2feca39"},"previous_names":["ahmadjoya/generate-password-lite","ahmadjoya/js-generate-password"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadjoya%2Fgenerate-password-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadjoya%2Fgenerate-password-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadjoya%2Fgenerate-password-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadjoya%2Fgenerate-password-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmadjoya","download_url":"https://codeload.github.com/ahmadjoya/generate-password-lite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253948438,"owners_count":21988957,"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":["angular","generate-password","javascript","js-library","nodejs","password-generator","reactjs","vuejs"],"created_at":"2025-05-13T13:09:37.211Z","updated_at":"2025-05-13T13:10:03.630Z","avatar_url":"https://github.com/ahmadjoya.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- SOMETHING AUTO-GENERATED BY TOOLS - START --\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n\u003cp align =\"center\"\u003e\n  \u003ca href=\"https://nodei.co/npm/generate-password-lite\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://nodei.co/npm/generate-password-lite.png\" alt=\"npm Info\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://npm.im/generate-password-lite\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/generate-password-lite.svg\" alt=\"npm Version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://npm.im/generate-password-lite\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/ahmadjoya/generate-password-lite\" alt=\"npm Release Version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://npm.im/generate-password-lite\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/generate-password-lite.svg\" alt=\"npm Downloads\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://npm.im/generate-password-lite\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/l/generate-password-lite.svg\" alt=\"npm Package License\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/ahmadjoya/generate-password-lite/stargazers\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/ahmadjoya/generate-password-lite\" alt=\"github Stars\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ahmadjoya/generate-password-lite/network/members\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/forks/ahmadjoya/generate-password-lite\" alt=\"github Forks\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ahmadjoya/generate-password-lite/stargazers\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/contributors/ahmadjoya/generate-password-lite\" alt=\"github Contributors\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ahmadjoya/generate-password-lite/issues\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/issues/ahmadjoya/generate-password-lite\" alt=\"github Issues\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n# generate-password-lite\n\ngenerate-password-lite is usable for every typescript and typescript based project like react, vue, node, etc. it used to generate passwords that may contain alphabets, number and symbols. The options parameter enables the user to enable or disable the characters that are used to generate random password.\n\nThe characters that may be choosen from are\n\n- Lowercase Characters\n- Uppercase Characters\n- Numbers\n- Symbols\n\nThe user may also specify the minimum number of character for each type.\n\n## Installation\n\n```bash\nnpm install generate-password-lite\n```\n\nor\n\n```bash\nyarn add generate-password-lite\n```\n\n## Usage\n\nFor the password to be generated, **parameters** are able to pass as an optional **options** object.\n\n```typescript\nimport { GeneratePassword } from \"generate-password-lite\";\n\nconst password = GeneratePassword({\n  length: 14,\n  symbols: true,\n});\n\nconsole.log(password);\n```\n\nIf no parameter is passed, the default parameter will be taken as :\n\n```typescript\noptions = {\n  length: 10,\n  lowercase: true,\n  uppercase: true,\n  numbers: true,\n  symbols: false,\n  exclude: \"\",\n  minLengthLowercase: 1,\n  minLengthUppercase: 1,\n  minLengthNumbers: 1,\n  minLengthSymbols: 0,\n};\n```\n\n### Available options\n\nAny of these can be passed into the options object for each function.\n\n| Name               | Description                                                                                                                                                 | Default Value |\n| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |\n| length             | Integer, length of password.                                                                                                                                | 10            |\n| lowercase\\*        | Boolean, put lowercase letters in password                                                                                                                  | true          |\n| uppercase\\*        | Boolean, put uppercase letters in password.                                                                                                                 | true          |\n| numbers\\*          | Boolean, put numbers in password.                                                                                                                           | true          |\n| symbols\\*          | Boolean, put symbols in password.                                                                                                                           | false         |\n| exclude            | String, characters to be excluded from password.                                                                                                            | ''            |\n| minLengthLowercase | only if **lowercase** is set to **true**, minLengthLowercase will create a password that will have minimum number of lower case characters in the password. | 1             |\n| minLengthUppercase | only if **uppercase** is set to **true**, minLengthUppercase will create a password that will have minimum number of upper case characters in the password. | 1             |\n| minLengthNumbers   | only if **numbers** is set to **true**, minLengthNumbers will create a password that will have minimum number of numbers in the password.                   | 1             |\n| minLengthSymbols   | only if **symbols** is set to **true**, minLengthSymbols will create a password that will have minimum number of symbols in the password.                   | 1             |\n\n- At least one should be true.\n\n## Example\n\n- **No Options passed.**\n\n```typescript\nconst { GeneratePassword } = \"generate-password-lite\";\n\nconst password = GeneratePassword();\n\nconsole.log(password);\n```\n\nIn the above case, no parameter is passed as option. Therefore the default values will be taken - which will have alphabets, both upper and lower case, numbers, and will be of length 10 characters.\n\n```typescript\nxDU6izb3PV;\n```\n\n- **Length parameter passed.**\n\n```typescript\nconst password = GeneratePassword({ length: 25 });\nconsole.log(password);\n```\n\nThe password generated is like this\n\n```typescript\nU4c3KpQP5UrbZgTcrqMgFeI3R;\n```\n\n- **exclude parameter passed.**\n\n```typescript\noptions = {\n  exclude : 'abc567XYZ';\n}\n\npassword = GeneratePassword(options);\n\nconsole.log(password);\n```\n\nThe generated password wouldn't has none of 'abc567XYZ' characters\n\n```typescript\nJ9yCfttQNj;\n```\n\n## License\n\ngenerate-password-lite is licensed under the MIT License. See the [LICENSE](https://github.com/ahmadjoya/generate-password-lite#readme) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmadjoya%2Fgenerate-password-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmadjoya%2Fgenerate-password-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmadjoya%2Fgenerate-password-lite/lists"}