Skip to content
JS
Package

2fa

TOTP + HOTP library, with nice utilities for handing 2FA

v0.1.2, 21 Apr 2015MITCommonJSTypes: NoneAuthentication and authorisation
$ npm install 2fa

Key numbers

As of 25 Sept 2026
Weekly downloads
4.9k
-64% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
11 years ago
v0.1.2
GitHub stars
168
21 forks
Open issues / PRs
2 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
010k20k30kSept 2025Mar 2026Sept 2026High 28.2k (3 Mar 2026)Low 3.1k (1 Sept 2026)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

4,900 downloads last week, 20,999 in the last month. The 12-month change of -64% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
0.1.2, 21 Apr 201511 years ago
First published
-
Last push to GitHub
18 Feb 2024949 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
6

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
-
Dependencies (2)
qr-imagethirty-two
npm install 2fa
  • jsDelivrhttps://cdn.jsdelivr.net/npm/2fa@0.1.2/
  • unpkghttps://unpkg.com/2fa@0.1.2/
  • esm.shhttps://esm.sh/2fa@0.1.2
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 4900 < 10000.