# 2fa-hotp-totp

> Zero dependency HOTP/TOTP 2FA

Latest version **2.1.3** (published 2022-07-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install 2fa-hotp-totp
pnpm add 2fa-hotp-totp
yarn add 2fa-hotp-totp
bun add 2fa-hotp-totp
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.3 |
| Published | 2022-07-11 |
| First published | 2021-02-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | TAB_mk |
| Maintainers | tab_mk |
| Keywords | 2FA, HOTP, TOTP, OTP |

## Links

- npm: https://www.npmjs.com/package/2fa-hotp-totp
- Repository: https://github.com/TABmk/2FA-HOTP-TOTP
- Homepage: https://github.com/TABmk/2FA-HOTP-TOTP#readme
- Issues: https://github.com/TABmk/2FA-HOTP-TOTP/issues
- npm.io page: https://npm.io/package/2fa-hotp-totp

## Recent versions

- 2.1.3 (latest) — 2022-07-11
- 2.1.2 — 2021-11-22
- 2.1.1 — 2021-09-18
- 2.1.0 — 2021-09-04
- 2.1.0-beta.1 — 2021-09-04
- 2.0.1 — 2021-07-15
- 1.0.6 — 2021-03-04
- 1.0.5 — 2021-02-05
- 1.0.4 — 2021-02-05
- 1.0.3 — 2021-02-05
- 1.0.2 — 2021-02-05
- 1.0.1 — 2021-02-05
- 1.0.0 — 2021-02-05

## README

[<img src="https://img.shields.io/npm/v/2fa-hotp-totp">](https://www.npmjs.com/package/2fa-hotp-totp) [<img src="https://img.shields.io/npm/l/2fa-hotp-totp">](https://github.com/TABmk/2fa-hotp-totp/blob/master/LICENSE) <img src="https://badgen.net/npm/types/2fa-hotp-totp">

<img src="https://badgen.net/npm/dt/2fa-hotp-totp">
<img src="https://badgen.net/npm/dm/2fa-hotp-totp">

__Help__ [<img src="https://img.shields.io/github/issues/tabmk/2fa-hotp-totp">](https://github.com/TABmk/2fa-hotp-totp/issues?q=is%3Aopen+is%3Aissue) [<img src="https://img.shields.io/github/issues-pr/tabmk/2fa-hotp-totp">](https://github.com/TABmk/2fa-hotp-totp/pulls?q=is%3Aopen+is%3Apr)

#### __Rate me__ [<img src="https://img.shields.io/github/stars/tabmk/2fa-hotp-totp?style=social">](https://github.com/TABmk/2fa-hotp-totp)

<p align="center">
  <img src="https://github.com/TABmk/2fa-hotp-totp/raw/master/img/1.png">
</p>

# __2FA-HOTP-TOTP__

Zero-dependency <img src="https://badgen.net/bundlephobia/dependency-count/2fa-hotp-totp">

__1kB gzipped__ <img src="https://badgen.net/bundlephobia/minzip/2fa-hotp-totp">

#### The minimum version of Node.js required is 15 ⚠️

My implementation of 2FA HOTP/TOTP algorithms in TypeScript + base32 encoder for creating links for authenticator programs like [Google Authenticator](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2)

### Full documentation 👇

https://tabmk.github.io/2fa-hotp-totp/

---
_Source: https://npm.io/package/2fa-hotp-totp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
