{"id":21675872,"url":"https://github.com/sumithemmadi/totpjs","last_synced_at":"2025-09-07T16:34:51.948Z","repository":{"id":59212602,"uuid":"535975117","full_name":"sumithemmadi/totpjs","owner":"sumithemmadi","description":"totpjs is a cli which generate 2FA One Time Passwords.","archived":false,"fork":false,"pushed_at":"2023-09-07T06:10:29.000Z","size":4693,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-02T01:10:43.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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sumithemmadi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-09-13T05:40:40.000Z","updated_at":"2024-04-19T12:57:11.000Z","dependencies_parsed_at":"2024-11-25T16:03:14.455Z","dependency_job_id":null,"html_url":"https://github.com/sumithemmadi/totpjs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/sumithemmadi/totpjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumithemmadi%2Ftotpjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumithemmadi%2Ftotpjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumithemmadi%2Ftotpjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumithemmadi%2Ftotpjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sumithemmadi","download_url":"https://codeload.github.com/sumithemmadi/totpjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumithemmadi%2Ftotpjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273709764,"owners_count":25153921,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"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-25T14:11:18.387Z","updated_at":"2025-09-07T16:34:51.903Z","avatar_url":"https://github.com/sumithemmadi.png","language":"JavaScript","readme":"# totpjs\n\n[![Version](https://img.shields.io/npm/v/node-totpjs.svg)](https://www.npmjs.com/package/node-totpjs) \n[![Stars](https://img.shields.io/github/stars/sumithemmadi/totpjs)](https://github.com/sumithemmadi/totpjs/stargazers) \n[![weekly Download](https://img.shields.io/npm/dt/node-totpjs.svg)](https://github.com/sumithemmadi/totpjs) \n[![License](https://img.shields.io/npm/l/node-totpjs.svg)](https://github.com/sumithemmadi/totpjs/blob/main/LICENSE)\n[![Maintenance](https://img.shields.io/npms-io/maintenance-score/node-totpjs)](https://github.com/sumithemmadi/totpjs) \n[![issues](https://img.shields.io/github/issues/sumithemmadi/totpjs)](https://github.com/sumithemmadi/totpjs/issues)\n\n`totpjs`/`node-totpjs` is a cli which generate 2FA One Time Passwords.\n\n![VIDEO](https://raw.githubusercontent.com/sumithemmadi/totpjs/main/example/example.gif)\n\n# INSTALLATION\n\n- To install globally\n```\nnpm install -g node-totpjs\n```\n\n- To use it in nodejs\n```\nnpm install node-totpjs\n```\nand use it like.\n```js\nimport { get_totp } from \"node-totpjs\";\nconsole.log(get_totp(\"BSGSALKSNFASFASF\"))\n// 929926\n```\n\n# CLI-USAGE\n- Install it globally\n```\nnpm install -g node-totpjs\n```\n\n```\n~$ totpjs --help\nUsage:\ntotpjs add (Add a 2FA key)\ntotpjs remove (Remove a 2FA key)\n\nOptions:\n      --version      Show version number                [boolean]\n  -i, --interactive  Interactively select 2FA account   [boolean]\n  -h, --help         Show help                          [boolean]\n```\n\n### Adding new 2FA Key\n\n```\n~$ totpjs add\n```\n![IMAGE](https://raw.githubusercontent.com/sumithemmadi/totpjs/main/example/add.png)\n\n### Removing 2FA Key\nexample/interactive.gif\n```\n~$ totpjs remove\n```\n![IMAGE](https://raw.githubusercontent.com/sumithemmadi/totpjs/main/example/remove.png)\n\n\n### Select a particular  account\n```bash\n~$ totpjs -i # Select a particular  account\n```\n![IMAGE](https://raw.githubusercontent.com/sumithemmadi/totpjs/main/example/interactive.gif)\n\n# LICENSE\n\nMIT License\n\nCopyright (c) 2022 Emmadi Sumith Kumar\n## 💝 Sponsor and support me\n\nIf you find my projects helpful or inspiring, consider supporting me through GitHub Sponsors. Your sponsorship helps me dedicate more time and effort to open source development and creating impactful projects.\n\n[:heart: Sponsor me on github](https://github.com/sponsors/sumithemmadi?o=sd\u0026sc=t)\n\n\u003ca href='https://ko-fi.com/W7W4OZNLF' target='_blank'\u003e\u003cimg height='40' style='border:0px;height:40px;' src='https://storage.ko-fi.com/cdn/kofi3.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n\n\u003ca href=\"https://www.buymeacoffee.com/sumithemmadi\"\u003e \u003cimg align=\"left\" src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" height=\"40\" width=\"180\" alt=\"sumithemmadi\" /\u003e\u003c/a\u003e\u003cbr\u003e\u003cbr\u003e\n\n### 💖 Sponsors\n\n[![Sponsors](https://sumithemmadi.github.io/sponsors.svg)](https://github.com/sponsors/sumithemmadi/)\n\n- I want to extend my sincere gratitude to all my sponsors for their generous support.\n\n\n\n","funding_links":["https://github.com/sponsors/sumithemmadi?o=sd\u0026sc=t","https://ko-fi.com/W7W4OZNLF'","https://www.buymeacoffee.com/sumithemmadi","https://github.com/sponsors/sumithemmadi/"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumithemmadi%2Ftotpjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumithemmadi%2Ftotpjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumithemmadi%2Ftotpjs/lists"}