package.json 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. {
  2. "name": "otpauth",
  3. "version": "9.3.1",
  4. "description": "One Time Password (HOTP/TOTP) library for Node.js, Deno, Bun and browsers",
  5. "keywords": [
  6. "otp",
  7. "hotp",
  8. "totp",
  9. "one time password",
  10. "2fa",
  11. "2 factor",
  12. "two factor",
  13. "two-factor",
  14. "2step",
  15. "2 step",
  16. "two step",
  17. "two-step",
  18. "auth",
  19. "authenticator",
  20. "google authenticator"
  21. ],
  22. "author": "Héctor Molinero Fernández <hector@molinero.dev>",
  23. "license": "MIT",
  24. "homepage": "https://github.com/hectorm/otpauth",
  25. "repository": {
  26. "type": "git",
  27. "url": "https://github.com/hectorm/otpauth.git"
  28. },
  29. "bugs": {
  30. "url": "https://github.com/hectorm/otpauth/issues"
  31. },
  32. "funding": "https://github.com/hectorm/otpauth?sponsor=1",
  33. "type": "module",
  34. "types": "./dist/otpauth.d.ts",
  35. "main": "./dist/otpauth.node.cjs",
  36. "browser": "./dist/otpauth.esm.js",
  37. "exports": {
  38. ".": {
  39. "types": {
  40. "import": "./dist/otpauth.d.ts",
  41. "require": "./dist/otpauth.d.cts"
  42. },
  43. "bun": "./dist/otpauth.esm.js",
  44. "deno": "./dist/otpauth.esm.js",
  45. "node": {
  46. "import": "./dist/otpauth.node.mjs",
  47. "require": "./dist/otpauth.node.cjs"
  48. },
  49. "default": "./dist/otpauth.esm.js"
  50. },
  51. "./dist/*": {
  52. "types": {
  53. "import": "./dist/otpauth.d.ts",
  54. "require": "./dist/otpauth.d.cts"
  55. },
  56. "default": "./dist/*"
  57. }
  58. },
  59. "files": [
  60. "dist/"
  61. ],
  62. "scripts": {
  63. "all": "run-s types build docs lint test",
  64. "types": "run-s types:clean types:compile",
  65. "types:clean": "rimraf ./types/",
  66. "types:compile": "tsc -p ./src/",
  67. "build": "run-s build:clean build:compile",
  68. "build:clean": "rimraf ./dist/",
  69. "build:compile": "rollup -c",
  70. "docs": "run-s docs:clean docs:compile",
  71. "docs:clean": "rimraf ./docs/",
  72. "docs:compile": "typedoc ./src/index.js --readme none --out ./docs/",
  73. "lint": "run-s lint:*",
  74. "lint:eslint": "eslint --max-warnings 0 ./",
  75. "lint:prettier": "prettier --list-different ./",
  76. "lint:tsc": "tsc --noEmit",
  77. "format": "run-s format:*",
  78. "format:eslint": "eslint --fix ./",
  79. "format:prettier": "prettier --write ./",
  80. "test": "run-s test:*",
  81. "test:node": "run-s test:node:*",
  82. "test:node:esm": "run-s test:node:esm:*",
  83. "test:node:esm:unmin": "node ./test/node.test.mjs",
  84. "test:node:esm:min": "node ./test/node.test.min.mjs",
  85. "test:node:cjs": "run-s test:node:cjs:*",
  86. "test:node:cjs:unmin": "node ./test/node.test.cjs",
  87. "test:node:cjs:min": "node ./test/node.test.min.cjs",
  88. "test:deno": "run-s test:deno:*",
  89. "test:deno:esm": "run-s test:deno:esm:*",
  90. "test:deno:esm:unmin": "deno test --no-npm --allow-read=./test/,./dist/ --allow-net=deno.land ./test/deno.test.mjs",
  91. "test:deno:esm:min": "deno test --no-npm --allow-read=./test/,./dist/ --allow-net=deno.land ./test/deno.test.min.mjs",
  92. "test:bun": "run-s test:bun:*",
  93. "test:bun:esm": "run-s test:bun:esm:*",
  94. "test:bun:esm:unmin": "bun test ./test/bun.test.mjs",
  95. "test:bun:esm:min": "bun test ./test/bun.test.min.mjs ",
  96. "test:browser": "run-s test:browser:*",
  97. "test:browser:chromium": "run-s test:browser:chromium:*",
  98. "test:browser:chromium:umd": "run-s test:browser:chromium:umd:*",
  99. "test:browser:chromium:umd:unmin": "node ./test/browser.test.mjs chromium",
  100. "test:browser:chromium:umd:min": "node ./test/browser.test.min.mjs chromium",
  101. "test:browser:firefox": "run-s test:browser:firefox:*",
  102. "test:browser:firefox:umd": "run-s test:browser:firefox:umd:*",
  103. "test:browser:firefox:umd:unmin": "node ./test/browser.test.mjs firefox",
  104. "test:browser:firefox:umd:min": "node ./test/browser.test.min.mjs firefox",
  105. "test:browser:webkit": "run-s test:browser:webkit:*",
  106. "test:browser:webkit:umd": "run-s test:browser:webkit:umd:*",
  107. "test:browser:webkit:umd:unmin": "node ./test/browser.test.mjs webkit",
  108. "test:browser:webkit:umd:min": "node ./test/browser.test.min.mjs webkit",
  109. "version": "run-s all version:jsr version:git",
  110. "version:jsr": "node ./scripts/jsr.mjs",
  111. "version:git": "git add -A ./jsr.json ./types/ ./dist/ ./docs/"
  112. },
  113. "dependencies": {
  114. "@noble/hashes": "1.4.0"
  115. },
  116. "devDependencies": {
  117. "@eslint/js": "~9.4.0",
  118. "@rollup/plugin-node-resolve": "~15.2.3",
  119. "@rollup/plugin-replace": "~5.0.5",
  120. "@rollup/plugin-swc": "~0.3.0",
  121. "@rollup/plugin-terser": "~0.4.4",
  122. "@rollup/plugin-virtual": "~3.0.2",
  123. "@swc/core": "~1.5.24",
  124. "@types/eslint": "~8.56.10",
  125. "@types/eslint-config-prettier": "~6.11.3",
  126. "@types/eslint__js": "~8.42.3",
  127. "@types/node": "~20.14.0",
  128. "chai": "~5.1.1",
  129. "eslint": "~9.4.0",
  130. "eslint-config-prettier": "~9.1.0",
  131. "globals": "~15.3.0",
  132. "mocha": "~10.4.0",
  133. "npm-run-all2": "~6.2.0",
  134. "playwright": "~1.44.1",
  135. "prettier": "~3.3.0",
  136. "rimraf": "~5.0.7",
  137. "rollup": "~4.18.0",
  138. "rollup-plugin-dts": "~6.1.1",
  139. "typedoc": "~0.25.13",
  140. "typescript": "~5.4.5"
  141. }
  142. }