{"_id":"2fa-cmd","_rev":"5-2262a86b1452a336e59f6955126a66d1","name":"2fa-cmd","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.1":{"name":"2fa-cmd","version":"0.0.1","description":"A command tool for Google Authenticator","author":{"name":"x-ray-s"},"email":"princesswar721@gmail.com","license":"ISC","bin":{"2fa":"dist/cli.js"},"repository":{"url":"git+https://github.com/x-ray-s/2fa-cmd.git"},"type":"module","engines":{"node":">=16"},"keywords":["Google Authenticator","2fa","otplib","otp"],"scripts":{"build":"tsc && node build.js","dev":"tsc --watch","test":"prettier --check . && xo && ava"},"dependencies":{"ink":"^4.1.0","lowdb":"^7.0.1","meow":"^11.0.0","otplib":"^12.0.1","protobufjs":"^7.2.6","react":"^18.2.0"},"devDependencies":{"@sindresorhus/tsconfig":"^3.0.1","@types/react":"^18.0.32","@vdemedes/prettier-config":"^2.0.1","ava":"^5.2.0","chalk":"^5.3.0","eslint-config-xo-react":"^0.27.0","eslint-plugin-react":"^7.32.2","eslint-plugin-react-hooks":"^4.6.0","ink-progress-bar":"^3.0.0","ink-testing-library":"^3.0.0","prettier":"^2.8.7","typescript":"^5.0.3","xo":"^0.53.1"},"ava":{"extensions":{"ts":"module","tsx":"module"},"nodeArguments":["--loader=ts-node/esm"]},"xo":{"extends":"xo-react","prettier":true,"rules":{"react/prop-types":"off"}},"prettier":"@vdemedes/prettier-config","_id":"2fa-cmd@0.0.1","gitHead":"c7278e453cefba1d561cf6f7a743e945f4a2c8f3","bugs":{"url":"https://github.com/x-ray-s/2fa-cmd/issues"},"homepage":"https://github.com/x-ray-s/2fa-cmd#readme","_nodeVersion":"18.20.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-7l19PFFUajxHeVoCnGmjcHDj5hV5zUph5NaKro2xl8AfRSqdRpSWGv4A9nJX0/qWGEkTJMhO3gQLS24eoGUorg==","shasum":"fd29b8b5b00e21ecbb44d8487d87f5f8630ec7ae","tarball":"https://registry.npmjs.org/2fa-cmd/-/2fa-cmd-0.0.1.tgz","fileCount":2,"unpackedSize":2630,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/2fa-cmd@0.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBX4AN8VSVdts0bYHxC9eFczGR6oJAhrPZKVIM0AVU64AiBC8OoeIUW24ok7ibdnfNaPkTlqnWJmoeiAtaRSxG/CPw=="}]},"_npmUser":{"name":"princess_war","email":"princesswar721@gmail.com"},"directories":{},"maintainers":[{"name":"princess_war","email":"princesswar721@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/2fa-cmd_0.0.1_1715321352335_0.4885281526409839"},"_hasShrinkwrap":false},"0.0.2":{"name":"2fa-cmd","version":"0.0.2","description":"A command tool for Google Authenticator","author":{"name":"x-ray-s"},"email":"princesswar721@gmail.com","license":"ISC","bin":{"2fa":"dist/cli.js"},"repository":{"url":"git+https://github.com/x-ray-s/2fa-cmd.git"},"type":"module","engines":{"node":">=16"},"keywords":["Google Authenticator","2fa","otplib","otp"],"scripts":{"build":"tsc && node build.js","dev":"tsc --watch","test":"prettier --check . && xo && ava"},"dependencies":{"ink":"^4.1.0","lowdb":"^7.0.1","meow":"^11.0.0","otplib":"^12.0.1","protobufjs":"^7.2.6","react":"^18.2.0"},"devDependencies":{"@sindresorhus/tsconfig":"^3.0.1","@types/react":"^18.0.32","@vdemedes/prettier-config":"^2.0.1","ava":"^5.2.0","chalk":"^5.3.0","eslint-config-xo-react":"^0.27.0","eslint-plugin-react":"^7.32.2","eslint-plugin-react-hooks":"^4.6.0","ink-progress-bar":"^3.0.0","ink-testing-library":"^3.0.0","prettier":"^2.8.7","typescript":"^5.0.3","xo":"^0.53.1"},"ava":{"extensions":{"ts":"module","tsx":"module"},"nodeArguments":["--loader=ts-node/esm"]},"xo":{"extends":"xo-react","prettier":true,"rules":{"react/prop-types":"off"}},"prettier":"@vdemedes/prettier-config","_id":"2fa-cmd@0.0.2","gitHead":"62b289a2297cbd019a0d98cb324efc03b0ea6fbc","bugs":{"url":"https://github.com/x-ray-s/2fa-cmd/issues"},"homepage":"https://github.com/x-ray-s/2fa-cmd#readme","_nodeVersion":"18.20.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-yyxxM4ZoFFJZq38bvDH9rAdV0iznPomE05+Ei521K1TCpPOFSM6V/xkQ5/k34hqHegknRvJL+JoSnsMYAt37bQ==","shasum":"8f7868cf60423c1b091ea4aee687b206b1bdb5b6","tarball":"https://registry.npmjs.org/2fa-cmd/-/2fa-cmd-0.0.2.tgz","fileCount":17,"unpackedSize":14662,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/2fa-cmd@0.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNPbOGQ79/bpWJJLBp2JvJNDznzZQHpxW6qp1+EloRIQIhAOnpuRh6oe2Motaj5kFi+CS9RyT7hDlIZgELBViDhWtg"}]},"_npmUser":{"name":"princess_war","email":"princesswar721@gmail.com"},"directories":{},"maintainers":[{"name":"princess_war","email":"princesswar721@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/2fa-cmd_0.0.2_1715321800727_0.9523889518756732"},"_hasShrinkwrap":false},"0.0.3":{"name":"2fa-cmd","version":"0.0.3","description":"A command tool for Google Authenticator","author":{"name":"x-ray-s"},"email":"princesswar721@gmail.com","license":"MIT","bin":{"2fa":"dist/cli.js"},"repository":{"url":"git+https://github.com/x-ray-s/2fa-cmd.git"},"type":"module","engines":{"node":">=16"},"keywords":["Google Authenticator","2fa","otplib","otp"],"scripts":{"build":"tsc && node build.js","dev":"tsc --watch","test":"prettier --check . && xo && ava"},"dependencies":{"ink":"^4.1.0","lowdb":"^7.0.1","meow":"^11.0.0","otplib":"^12.0.1","protobufjs":"^7.2.6","react":"^18.2.0"},"devDependencies":{"@sindresorhus/tsconfig":"^3.0.1","@types/react":"^18.0.32","@vdemedes/prettier-config":"^2.0.1","ava":"^5.2.0","chalk":"^5.3.0","eslint-config-xo-react":"^0.27.0","eslint-plugin-react":"^7.32.2","eslint-plugin-react-hooks":"^4.6.0","ink-progress-bar":"^3.0.0","ink-testing-library":"^3.0.0","prettier":"^2.8.7","typescript":"^5.0.3","xo":"^0.53.1"},"ava":{"extensions":{"ts":"module","tsx":"module"},"nodeArguments":["--loader=ts-node/esm"]},"xo":{"extends":"xo-react","prettier":true,"rules":{"react/prop-types":"off"}},"prettier":"@vdemedes/prettier-config","_id":"2fa-cmd@0.0.3","gitHead":"6056f007b6a17a2445403161723c6f2cd0eb1449","bugs":{"url":"https://github.com/x-ray-s/2fa-cmd/issues"},"homepage":"https://github.com/x-ray-s/2fa-cmd#readme","_nodeVersion":"18.20.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-XcxxDz+3XYT6aTjm51S4XsUlP4E45BtW6gezHjob47G9oeORPSrHr8a3FiaseFKSEr0jfHTSlPgLzRsBMsM8pA==","shasum":"7adbfe52345c77917649b2814c8122d377fc0b8c","tarball":"https://registry.npmjs.org/2fa-cmd/-/2fa-cmd-0.0.3.tgz","fileCount":17,"unpackedSize":15654,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/2fa-cmd@0.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDdg/RChKxacHCJGmBDk6IWkfHNmZDOX4kzqRQTTSXYJAiEAioZfDJ/EIucZpDj2xRa7XpW82H6egMATWIqzU0otMNM="}]},"_npmUser":{"name":"princess_war","email":"princesswar721@gmail.com"},"directories":{},"maintainers":[{"name":"princess_war","email":"princesswar721@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/2fa-cmd_0.0.3_1715656150127_0.31599069549617353"},"_hasShrinkwrap":false},"0.0.4":{"name":"2fa-cmd","version":"0.0.4","description":"A command tool for Google Authenticator","author":{"name":"x-ray-s"},"email":"princesswar721@gmail.com","license":"MIT","bin":{"2fa":"dist/cli.js"},"repository":{"url":"git+https://github.com/x-ray-s/2fa-cmd.git"},"type":"module","engines":{"node":">=16"},"keywords":["Google Authenticator","2fa","otplib","otp"],"scripts":{"build":"tsc && node build.js","dev":"tsc --watch","test":"prettier --check . && xo && ava"},"dependencies":{"ink":"^4.1.0","lowdb":"^7.0.1","meow":"^11.0.0","otplib":"^12.0.1","protobufjs":"^7.2.6","react":"^18.2.0"},"devDependencies":{"@sindresorhus/tsconfig":"^3.0.1","@types/react":"^18.0.32","@vdemedes/prettier-config":"^2.0.1","ava":"^5.2.0","chalk":"^5.3.0","eslint-config-xo-react":"^0.27.0","eslint-plugin-react":"^7.32.2","eslint-plugin-react-hooks":"^4.6.0","ink-progress-bar":"^3.0.0","ink-testing-library":"^3.0.0","prettier":"^2.8.7","typescript":"^5.0.3","xo":"^0.53.1"},"ava":{"extensions":{"ts":"module","tsx":"module"},"nodeArguments":["--loader=ts-node/esm"]},"xo":{"extends":"xo-react","prettier":true,"rules":{"react/prop-types":"off"}},"prettier":"@vdemedes/prettier-config","_id":"2fa-cmd@0.0.4","gitHead":"af1bf00a8ee229f6bd9ac0f9108d055ad9921dad","bugs":{"url":"https://github.com/x-ray-s/2fa-cmd/issues"},"homepage":"https://github.com/x-ray-s/2fa-cmd#readme","_nodeVersion":"18.20.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-h0nmx2Eo101fMfCriT2Ye8IJieZVJeykiHGGbypXGlbgQdQNYakwXzYnItNgl6zApj3M4lw+shrBz6V5DOM/fw==","shasum":"4065960c07f8a91b50d3c020f26dccf807dfcd68","tarball":"https://registry.npmjs.org/2fa-cmd/-/2fa-cmd-0.0.4.tgz","fileCount":17,"unpackedSize":16489,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/2fa-cmd@0.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCH/4mDKjGDT8YjsFWJ07VBdVcpC6Mu1xJQT8rylK5huAIhAP+V3fVTLWs6qZLwhAw5Y6IdGMuuExXmbyYII4fnNHyl"}]},"_npmUser":{"name":"princess_war","email":"princesswar721@gmail.com"},"directories":{},"maintainers":[{"name":"princess_war","email":"princesswar721@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/2fa-cmd_0.0.4_1715661823736_0.15133598670423165"},"_hasShrinkwrap":false},"0.0.5":{"name":"2fa-cmd","version":"0.0.5","description":"A command tool for Google Authenticator","author":{"name":"x-ray-s"},"email":"princesswar721@gmail.com","license":"MIT","bin":{"2fa":"dist/cli.js"},"repository":{"url":"git+https://github.com/x-ray-s/2fa-cmd.git"},"type":"module","engines":{"node":">=16"},"keywords":["Google Authenticator","2fa","otplib","otp"],"scripts":{"build":"tsc && node build.js","dev":"tsc --watch","test":"prettier --check . && xo && ava"},"dependencies":{"ink":"^4.1.0","lowdb":"^7.0.1","meow":"^11.0.0","otplib":"^12.0.1","protobufjs":"^7.2.6","react":"^18.2.0"},"devDependencies":{"@sindresorhus/tsconfig":"^3.0.1","@types/react":"^18.0.32","@vdemedes/prettier-config":"^2.0.1","ava":"^5.2.0","chalk":"^5.3.0","eslint-config-xo-react":"^0.27.0","eslint-plugin-react":"^7.32.2","eslint-plugin-react-hooks":"^4.6.0","ink-progress-bar":"^3.0.0","ink-testing-library":"^3.0.0","prettier":"^2.8.7","typescript":"^5.0.3","xo":"^0.53.1"},"ava":{"extensions":{"ts":"module","tsx":"module"},"nodeArguments":["--loader=ts-node/esm"]},"xo":{"extends":"xo-react","prettier":true,"rules":{"react/prop-types":"off"}},"prettier":"@vdemedes/prettier-config","_id":"2fa-cmd@0.0.5","gitHead":"e6a9b7b205ee57bd86999d38381e2142d96724b0","bugs":{"url":"https://github.com/x-ray-s/2fa-cmd/issues"},"homepage":"https://github.com/x-ray-s/2fa-cmd#readme","_nodeVersion":"18.20.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-/+y4TG0t9W/UUEGt4fb4+loWqzJH/agsY6+TXZhYgATnJmrHH99W/wqC5SnOhQK5uCi8Df6b8u9y0mY59cpIjg==","shasum":"aa748879ce9d73dd9ae2a1329f25414450eb57e5","tarball":"https://registry.npmjs.org/2fa-cmd/-/2fa-cmd-0.0.5.tgz","fileCount":17,"unpackedSize":16595,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/2fa-cmd@0.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHSe4JUh+goVoxo4eaPZZvd4en/0ohZgpfo4TSiLuVlFAiAX4dJz/ftxd6ZES/EUM+NzyaKcHzpkGKXRLXUv8b83Ow=="}]},"_npmUser":{"name":"princess_war","email":"princesswar721@gmail.com"},"directories":{},"maintainers":[{"name":"princess_war","email":"princesswar721@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/2fa-cmd_0.0.5_1715664469666_0.6725949459122225"},"_hasShrinkwrap":false},"0.0.6":{"name":"2fa-cmd","version":"0.0.6","description":"A command tool for Google Authenticator","author":{"name":"x-ray-s"},"email":"princesswar721@gmail.com","license":"MIT","bin":{"2fa":"dist/cli.js"},"repository":{"url":"git+https://github.com/x-ray-s/2fa-cmd.git"},"type":"module","engines":{"node":">=16"},"keywords":["Google Authenticator","2fa","otplib","otp"],"scripts":{"build":"tsc && node build.js","dev":"tsc --watch","test":"prettier --check . && xo && ava"},"dependencies":{"ink":"^4.1.0","lowdb":"^7.0.1","meow":"^11.0.0","otplib":"^12.0.1","protobufjs":"^7.2.6","react":"^18.2.0"},"devDependencies":{"@sindresorhus/tsconfig":"^3.0.1","@types/react":"^18.0.32","@vdemedes/prettier-config":"^2.0.1","ava":"^5.2.0","chalk":"^5.3.0","eslint-config-xo-react":"^0.27.0","eslint-plugin-react":"^7.32.2","eslint-plugin-react-hooks":"^4.6.0","ink-progress-bar":"^3.0.0","ink-testing-library":"^3.0.0","prettier":"^2.8.7","typescript":"^5.0.3","xo":"^0.53.1"},"ava":{"extensions":{"ts":"module","tsx":"module"},"nodeArguments":["--loader=ts-node/esm"]},"xo":{"extends":"xo-react","prettier":true,"rules":{"react/prop-types":"off"}},"prettier":"@vdemedes/prettier-config","_id":"2fa-cmd@0.0.6","gitHead":"9cf4b9e4ad44f35ca4230f4173993d2598cb6f8d","bugs":{"url":"https://github.com/x-ray-s/2fa-cmd/issues"},"homepage":"https://github.com/x-ray-s/2fa-cmd#readme","_nodeVersion":"18.20.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-W0jyb62sxvEyI8amSDeGzgWkBKXcTkZocBgjMqef02UAETN2rE6A/OCq/RTS2TY9Kh2jj2xl4y6eToCz7enTzw==","shasum":"a22320a105ab409cd165500b7cda2319a52db538","tarball":"https://registry.npmjs.org/2fa-cmd/-/2fa-cmd-0.0.6.tgz","fileCount":17,"unpackedSize":16656,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/2fa-cmd@0.0.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC89Hq00ngg6ESqk0B6OpkRgi4gCH6uOEDGx+LaeHaR0wIhAOQVyWe3//7UZAokl4avRvwgw9e3VGUEwHJxosgF6TWt"}]},"_npmUser":{"name":"princess_war","email":"princesswar721@gmail.com"},"directories":{},"maintainers":[{"name":"princess_war","email":"princesswar721@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/2fa-cmd_0.0.6_1715827881625_0.977650945208824"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-10T06:09:12.177Z","0.0.1":"2024-05-10T06:09:12.457Z","modified":"2024-05-16T02:51:22.167Z","0.0.2":"2024-05-10T06:16:40.868Z","0.0.3":"2024-05-14T03:09:10.339Z","0.0.4":"2024-05-14T04:43:43.878Z","0.0.5":"2024-05-14T05:27:49.940Z","0.0.6":"2024-05-16T02:51:21.787Z"},"maintainers":[{"name":"princess_war","email":"princesswar721@gmail.com"}],"description":"A command tool for Google Authenticator","homepage":"https://github.com/x-ray-s/2fa-cmd#readme","keywords":["Google Authenticator","2fa","otplib","otp"],"repository":{"url":"git+https://github.com/x-ray-s/2fa-cmd.git"},"author":{"name":"x-ray-s"},"bugs":{"url":"https://github.com/x-ray-s/2fa-cmd/issues"},"license":"MIT","readme":"# 2fa-cmd\n\nGoogle Authenticator or other OTP application in command.\n\n![screenshot](screenshot.png)\n\n## Install\n\n```bash\nnpm i 2fa-cmd -g\n```\n\n## Contribute\n\n```bash\n$ git clone git@github.com:x-ray-s/2fa-cmd.git\n$ cd 2fa-cmd\n$ npm i && npm run build && npm link\n```\n\n## CLI\n\n```\n$ 2fa --help\n\n\tUsage\n\t  $ 2fa <input>\n\n\tInput\n\t  add - Add a new secret\n\t  remove - Remove a secret\n\t  verify - verify a token\n\t  import - Import a secret from url\n\t  rename - Rename\n\t  get - get one otp\n\n\tOptions\n\t\t--name <The name of the secret>\n\t\t--secret <Your secret>\n\t\t--token <Your token>\n\t\t--url <The URL parsed by QR code exported from Google Authenticator>\n\n\tExamples\n\t  $ 2fa\n\t  $ 2fa add --name <name> --secret FCRJQZSGFD3VMZDE\n\t  $ 2fa remove --name <name>\n\t  $ 2fa verify --name <name> --token 643223\n\t  $ 2fa import --url 'otpauth://totp/...'\n\t  $ 2fa rename <old> --name <new>\n\t  $ 2fa get --name <name>\n\t  $ 2fa --name <name> // same as get\n```\n\n## TODO\n\n- [x] npm publish\n- [x] rename\n- [ ] password\n- [ ] encrypto\n- [ ] custom storage path\n\n## HOW\n\n#### How to import Google Authenticator in command?\n\n1. Open the Authenticator, Click Menu on left top;\n2. Transform account and export accounts;\n3. You will get a qrcode image;\n4. Decode the qrcode. eg. [https://cli.im/deqr]()\n5. You will get a schema URL like _otpauth-migration://offline?data=_\n6. `2fa import --url '<your url>'` > notice the quotation mark\n","readmeFilename":"readme.md"}