totpjs
/node-totpjs
is a cli which generate 2FA One Time Passwords.
- 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
- 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]
~$ totpjs add
example/interactive.gif
~$ totpjs remove
~$ totpjs -i # Select a particular account
MIT License
Copyright (c) 2022 Emmadi Sumith Kumar
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.
- I want to extend my sincere gratitude to all my sponsors for their generous support.