mirror of
https://github.com/hectorm/otpauth.git
synced 2026-05-07 20:12:27 +00:00
143 lines
4.9 KiB
JSON
143 lines
4.9 KiB
JSON
{
|
|
"name": "otpauth",
|
|
"version": "9.3.0",
|
|
"description": "One Time Password (HOTP/TOTP) library for Node.js, Deno, Bun and browsers",
|
|
"keywords": [
|
|
"otp",
|
|
"hotp",
|
|
"totp",
|
|
"one time password",
|
|
"2fa",
|
|
"2 factor",
|
|
"two factor",
|
|
"two-factor",
|
|
"2step",
|
|
"2 step",
|
|
"two step",
|
|
"two-step",
|
|
"auth",
|
|
"authenticator",
|
|
"google authenticator"
|
|
],
|
|
"author": "Héctor Molinero Fernández <hector@molinero.dev>",
|
|
"license": "MIT",
|
|
"homepage": "https://github.com/hectorm/otpauth",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/hectorm/otpauth.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/hectorm/otpauth/issues"
|
|
},
|
|
"funding": "https://github.com/hectorm/otpauth?sponsor=1",
|
|
"type": "module",
|
|
"types": "./dist/otpauth.d.ts",
|
|
"main": "./dist/otpauth.node.cjs",
|
|
"browser": "./dist/otpauth.esm.js",
|
|
"exports": {
|
|
".": {
|
|
"types": {
|
|
"import": "./dist/otpauth.d.ts",
|
|
"require": "./dist/otpauth.d.cts"
|
|
},
|
|
"bun": "./dist/otpauth.esm.js",
|
|
"deno": "./dist/otpauth.esm.js",
|
|
"node": {
|
|
"import": "./dist/otpauth.node.mjs",
|
|
"require": "./dist/otpauth.node.cjs"
|
|
},
|
|
"default": "./dist/otpauth.esm.js"
|
|
},
|
|
"./dist/*": {
|
|
"types": {
|
|
"import": "./dist/otpauth.d.ts",
|
|
"require": "./dist/otpauth.d.cts"
|
|
},
|
|
"default": "./dist/*"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist/"
|
|
],
|
|
"scripts": {
|
|
"all": "run-s types build docs lint test",
|
|
"types": "run-s types:clean types:compile",
|
|
"types:clean": "rimraf ./types/",
|
|
"types:compile": "tsc -p ./src/",
|
|
"build": "run-s build:clean build:compile",
|
|
"build:clean": "rimraf ./dist/",
|
|
"build:compile": "rollup -c",
|
|
"docs": "run-s docs:clean docs:compile",
|
|
"docs:clean": "rimraf ./docs/",
|
|
"docs:compile": "typedoc ./src/index.js --readme none --out ./docs/",
|
|
"lint": "run-s lint:*",
|
|
"lint:eslint": "eslint --max-warnings 0 ./",
|
|
"lint:prettier": "prettier --list-different ./",
|
|
"lint:tsc": "tsc --noEmit",
|
|
"format": "run-s format:*",
|
|
"format:eslint": "eslint --fix ./",
|
|
"format:prettier": "prettier --write ./",
|
|
"test": "run-s test:*",
|
|
"test:node": "run-s test:node:*",
|
|
"test:node:esm": "run-s test:node:esm:*",
|
|
"test:node:esm:unmin": "node ./test/node.test.mjs",
|
|
"test:node:esm:min": "node ./test/node.test.min.mjs",
|
|
"test:node:cjs": "run-s test:node:cjs:*",
|
|
"test:node:cjs:unmin": "node ./test/node.test.cjs",
|
|
"test:node:cjs:min": "node ./test/node.test.min.cjs",
|
|
"test:deno": "run-s test:deno:*",
|
|
"test:deno:esm": "run-s test:deno:esm:*",
|
|
"test:deno:esm:unmin": "deno test --no-npm --allow-read=./test/,./dist/ --allow-net=deno.land ./test/deno.test.mjs",
|
|
"test:deno:esm:min": "deno test --no-npm --allow-read=./test/,./dist/ --allow-net=deno.land ./test/deno.test.min.mjs",
|
|
"test:bun": "run-s test:bun:*",
|
|
"test:bun:esm": "run-s test:bun:esm:*",
|
|
"test:bun:esm:unmin": "bun test ./test/bun.test.mjs",
|
|
"test:bun:esm:min": "bun test ./test/bun.test.min.mjs ",
|
|
"test:browser": "run-s test:browser:*",
|
|
"test:browser:chromium": "run-s test:browser:chromium:*",
|
|
"test:browser:chromium:umd": "run-s test:browser:chromium:umd:*",
|
|
"test:browser:chromium:umd:unmin": "node ./test/browser.test.mjs chromium",
|
|
"test:browser:chromium:umd:min": "node ./test/browser.test.min.mjs chromium",
|
|
"test:browser:firefox": "run-s test:browser:firefox:*",
|
|
"test:browser:firefox:umd": "run-s test:browser:firefox:umd:*",
|
|
"test:browser:firefox:umd:unmin": "node ./test/browser.test.mjs firefox",
|
|
"test:browser:firefox:umd:min": "node ./test/browser.test.min.mjs firefox",
|
|
"test:browser:webkit": "run-s test:browser:webkit:*",
|
|
"test:browser:webkit:umd": "run-s test:browser:webkit:umd:*",
|
|
"test:browser:webkit:umd:unmin": "node ./test/browser.test.mjs webkit",
|
|
"test:browser:webkit:umd:min": "node ./test/browser.test.min.mjs webkit",
|
|
"version": "run-s all version:jsr version:git",
|
|
"version:jsr": "node ./scripts/jsr.mjs",
|
|
"version:git": "git add -A ./jsr.json ./types/ ./dist/ ./docs/"
|
|
},
|
|
"dependencies": {
|
|
"@noble/hashes": "1.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "~9.4.0",
|
|
"@rollup/plugin-node-resolve": "~15.2.3",
|
|
"@rollup/plugin-replace": "~5.0.5",
|
|
"@rollup/plugin-swc": "~0.3.0",
|
|
"@rollup/plugin-terser": "~0.4.4",
|
|
"@rollup/plugin-virtual": "~3.0.2",
|
|
"@swc/core": "~1.5.24",
|
|
"@types/eslint": "~8.56.10",
|
|
"@types/eslint-config-prettier": "~6.11.3",
|
|
"@types/eslint__js": "~8.42.3",
|
|
"@types/node": "~20.14.0",
|
|
"chai": "~5.1.1",
|
|
"eslint": "~9.4.0",
|
|
"eslint-config-prettier": "~9.1.0",
|
|
"globals": "~15.3.0",
|
|
"mocha": "~10.4.0",
|
|
"npm-run-all2": "~6.2.0",
|
|
"playwright": "~1.44.1",
|
|
"prettier": "~3.3.0",
|
|
"rimraf": "~5.0.7",
|
|
"rollup": "~4.18.0",
|
|
"rollup-plugin-dts": "~6.1.1",
|
|
"typedoc": "~0.25.13",
|
|
"typescript": "~5.4.5"
|
|
}
|
|
}
|