otplib
Version:
TypeScript-first library for TOTP and HOTP with multi-runtime and plugin support
78 lines • 1.78 kB
JSON
{
"name": "otplib",
"version": "13.0.2",
"description": "TypeScript-first library for TOTP and HOTP with multi-runtime and plugin support",
"license": "MIT",
"author": "Gerald Yeo <support@yeojz.dev>",
"homepage": "https://otplib.yeojz.dev",
"repository": {
"type": "git",
"url": "git+https://github.com/yeojz/otplib.git",
"directory": "packages/otplib"
},
"bugs": {
"url": "https://github.com/yeojz/otplib/issues"
},
"keywords": [
"otp",
"hotp",
"totp",
"rfc4226",
"rfc6238",
"2fa",
"mfa",
"authenticator",
"google-authenticator",
"one-time-password",
"security"
],
"sideEffects": false,
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"dependencies": {
"@otplib/core": "13.0.2",
"@otplib/uri": "13.0.2",
"@otplib/totp": "13.0.2",
"@otplib/plugin-crypto-noble": "13.0.2",
"@otplib/plugin-base32-scure": "13.0.2",
"@otplib/hotp": "13.0.2"
},
"devDependencies": {
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"vitest": "^4.0.16",
"@otplib/plugin-crypto-noble": "13.0.2",
"@repo/testing": "13.0.1"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"test": "vitest",
"test:ci": "vitest run --coverage",
"typecheck": "tsc --noEmit",
"lint": "eslint src/",
"clean": "rm -rf dist .tsbuildinfo"
}
}