Skip to content

totpjs is a cli which generate 2FA One Time Passwords.

License

Notifications You must be signed in to change notification settings

sumithemmadi/totpjs

Repository files navigation

totpjs

Version Stars weekly Download License Maintenance issues

totpjs/node-totpjs is a cli which generate 2FA One Time Passwords.

VIDEO

INSTALLATION

  • To install globally
npm install -g node-totpjs
  • To use it in nodejs
npm install node-totpjs

and use it like.

import { get_totp } from "node-totpjs";
console.log(get_totp("BSGSALKSNFASFASF"))
// 929926

CLI-USAGE

  • Install it globally
npm install -g node-totpjs
~$ totpjs --help
Usage:
totpjs add (Add a 2FA key)
totpjs remove (Remove a 2FA key)

Options:
      --version      Show version number                [boolean]
  -i, --interactive  Interactively select 2FA account   [boolean]
  -h, --help         Show help                          [boolean]

Adding new 2FA Key

~$ totpjs add

IMAGE

Removing 2FA Key

example/interactive.gif

~$ totpjs remove

IMAGE

Select a particular account

~$ totpjs -i # Select a particular  account

IMAGE

LICENSE

MIT License

Copyright (c) 2022 Emmadi Sumith Kumar

💝 Sponsor and support me

If 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.

❤️ Sponsor me on github

Buy Me a Coffee at ko-fi.com

sumithemmadi

💖 Sponsors

Sponsors

  • I want to extend my sincere gratitude to all my sponsors for their generous support.

About

totpjs is a cli which generate 2FA One Time Passwords.

Resources

License

Stars

Watchers

Forks

Packages

No packages published