UNPKG

@epic-web/totp

Version:

Create and verify cryptographically secure Time-based One-time Passwords (TOTP) using the HMAC-based One-time Password (HOTP) algorithm.

66 lines (65 loc) 1.6 kB
{ "name": "@epic-web/totp", "type": "module", "exports": { ".": "./index.js" }, "files": [ "index.js", "index.d.ts" ], "repository": { "url": "https://github.com/epicweb-dev/totp" }, "publishConfig": { "access": "public" }, "version": "4.0.1", "description": "Create and verify cryptographically secure Time-based One-time Passwords (TOTP) using the HMAC-based One-time Password (HOTP) algorithm.", "main": "index.js", "scripts": { "test": "node --test --test-reporter spec --experimental-test-coverage *.test.js", "test:watch": "node --test --test-reporter spec --watch *.test.js", "typecheck": "npx -p typescript tsc --declaration --emitDeclarationOnly --allowJs --checkJs --downlevelIteration --module nodenext --moduleResolution nodenext --target es2022 --outDir . index.js" }, "keywords": [ "totp", "2fa", "two-factor", "authentication", "google authenticator", "1password", "authy", "otp", "time-based one time password", "one time password" ], "author": "Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com/)", "license": "MIT", "dependencies": { "base32-decode": "^1.0.0", "base32-encode": "^2.0.0" }, "engines": { "node": ">=20" }, "prettier": { "semi": false, "useTabs": true, "singleQuote": true, "proseWrap": "always", "overrides": [ { "files": [ "**/*.json" ], "options": { "useTabs": false } } ] }, "devDependencies": { "@types/node": "^20.4.5" } }