{"id":18054272,"url":"https://github.com/yugasun/2fa","last_synced_at":"2025-04-10T22:53:53.810Z","repository":{"id":42127242,"uuid":"460269199","full_name":"yugasun/2fa","owner":"yugasun","description":"CLI Command for Two Factor Authentication.🚀","archived":false,"fork":false,"pushed_at":"2024-01-31T02:02:45.000Z","size":580,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T22:53:48.208Z","etag":null,"topics":["2fa","cli","two-factor-authentication"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/yugasun.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"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}},"created_at":"2022-02-17T03:35:27.000Z","updated_at":"2024-10-15T09:22:50.000Z","dependencies_parsed_at":"2024-01-31T03:24:08.967Z","dependency_job_id":"b3032fe8-7b41-41e2-a104-d102a3b4a37c","html_url":"https://github.com/yugasun/2fa","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yugasun%2F2fa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yugasun%2F2fa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yugasun%2F2fa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yugasun%2F2fa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yugasun","download_url":"https://codeload.github.com/yugasun/2fa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248312172,"owners_count":21082638,"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":["2fa","cli","two-factor-authentication"],"created_at":"2024-10-31T00:10:07.417Z","updated_at":"2025-04-10T22:53:53.781Z","avatar_url":"https://github.com/yugasun.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Two Factor Authentication\n\n[![npm](https://img.shields.io/npm/v/%40ygkit%2F2fa)](http://www.npmtrends.com/%40ygkit%2F2fa)\n[![NPM downloads](http://img.shields.io/npm/dm/%40ygkit%2F2fa.svg?style=flat-square)](http://www.npmtrends.com/%40ygkit%2F2fa)\n\nCLI Command for Two Factor Authentication.\n\n- [Two Factor Authentication](#two-factor-authentication)\n  - [Demo](#demo)\n  - [Installation](#installation)\n  - [Usage](#usage)\n    - [Add Platform](#add-platform)\n    - [Remove Platform](#remove-platform)\n    - [Generate](#generate)\n  - [License](#license)\n\n## Demo\n\n![Demo](images/demo.gif)\n\n## Installation\n\n```bash\n$ npm i @ygkit/2fa -g\n```\n\n## Usage\n\n```bash\nUsage: 2fa [options] [command]\n\nOptions:\n  -v, --version   output the current version\n  -h, --help      display help for command\n\nCommands:\n  add             Add platform 2fa key\n  generate        Generate 2fa code.\n  list            List all platform\n  remove          Remove platform ga key\n  help [command]  display help for command\n\nExample call:\n  $ 2fa --help\n```\n\n### Add Platform\n\n```bash\n$ 2fa add\n? Please input platform name: test1\n? Please input 2fa authentication key: **********\n SUCCESS  Add platform test1 success.\n✨  Done in 33.32s.\n```\n\n### Remove Platform\n\n```bash\n$ 2fa remove\n? Please select platform name to remove: test1\n SUCCESS  Remove platform 'test1' success.\n```\n\n### Generate\n\nHelp:\n\n```bash\n$ 2fa generate\n? Please select platform name: npm\nGenerate 2fa code for npm:\n 928576\nAuto copy 2fa code to clipboard success.\n```\n\nAlso you can omit `generate` word, like:\n\n```bash\n$ 2fa\n```\n\n## License\n\nMIT License\n\nCopyright (c) 2022 @yugasun.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyugasun%2F2fa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyugasun%2F2fa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyugasun%2F2fa/lists"}