@ygkit/2fa

CLI Command for Two Factor Authentication

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@ygkit/2fa
0.0.53 months ago2 years agoMinified + gzip package size for @ygkit/2fa in KB

Readme

Two Factor Authentication
npm NPM downloads
CLI Command for Two Factor Authentication.
- Demo - Installation - Usage
- [Add Platform](#add-platform)
- [Remove Platform](#remove-platform)
- [Generate](#generate)
- License

Demo

Demo

Installation

$ npm i @ygkit/2fa -g

Usage

Usage: 2fa [options] [command]

Options:
  -v, --version   output the current version
  -h, --help      display help for command

Commands:
  add             Add platform 2fa key
  generate        Generate 2fa code.
  list            List all platform
  remove          Remove platform ga key
  help [command]  display help for command

Example call:
  $ 2fa --help

Add Platform

$ 2fa add
? Please input platform name: test1
? Please input 2fa authentication key: **********
 SUCCESS  Add platform test1 success.
✨  Done in 33.32s.

Remove Platform

$ 2fa remove
? Please select platform name to remove: test1
 SUCCESS  Remove platform 'test1' success.

Generate

Help:
$ 2fa generate
? Please select platform name: npm
Generate 2fa code for npm:
 928576
Auto copy 2fa code to clipboard success.

Also you can omit generate word, like:
$ 2fa

License

MIT License
Copyright (c) 2022 @yugasun.