{
  "name": "openpgp",
  "description": "OpenPGP.js is a Javascript implementation of the OpenPGP protocol. This is defined in RFC 4880.",
  "version": "6.3.1",
  "license": "LGPL-3.0+",
  "homepage": "https://openpgpjs.org/",
  "engines": {
    "node": ">= 18.0.0",
    "typescript": ">= 5.0.0"
  },
  "devEngines": {
    "runtime": {
      "name": "node",
      "version": ">= 22.0.0"
    }
  },
  "keywords": [
    "crypto",
    "pgp",
    "gpg",
    "openpgp"
  ],
  "main": "dist/node/openpgp.min.cjs",
  "module": "dist/node/openpgp.min.mjs",
  "browser": {
    "./dist/node/openpgp.min.cjs": "./dist/openpgp.min.js",
    "./dist/node/openpgp.min.mjs": "./dist/openpgp.min.mjs"
  },
  "exports": {
    ".": {
      "types": "./dist/types/index.d.ts",
      "browser": "./dist/openpgp.min.mjs",
      "import": "./dist/node/openpgp.mjs",
      "require": "./dist/node/openpgp.min.cjs"
    },
    "./lightweight": {
      "types": "./dist/types/index.d.ts",
      "browser": "./dist/lightweight/openpgp.min.mjs"
    }
  },
  "types": "dist/types/index.d.ts",
  "type": "module",
  "directories": {
    "lib": "src"
  },
  "files": [
    "dist/",
    "lightweight/"
  ],
  "scripts": {
    "build": "rollup --config",
    "build-types": "rm -rf dist/types && tsc --project tsconfig.dist.json && cpy 'src/**/*.d.ts' dist/types",
    "build-test": "npm run build -- --config-build-only=test",
    "prepare": "npm run build && npm run build-types",
    "test": "mocha --timeout 120000 test/unittests.js",
    "test-type-definitions": "tsc --project test/typescript/tsconfig.test.json && ts-node --project test/typescript/tsconfig.test.json test/typescript/definitions.ts",
    "benchmark-time": "node test/benchmarks/time.js",
    "benchmark-memory-usage": "node test/benchmarks/memory_usage.js",
    "prebrowsertest": "npm run build-test",
    "browsertest": "web-test-runner --config test/web-test-runner.config.js --group local --manual --open",
    "test-browser": "web-test-runner --config test/web-test-runner.config.js --group local --playwright --browsers chromium firefox webkit",
    "test-browser:ci": "web-test-runner --config test/web-test-runner.config.js --group headless:ci",
    "test-browserstack": "web-test-runner --config test/web-test-runner.browserstack.config.js",
    "coverage": "c8 npm test",
    "lint": "eslint .",
    "docs": "jsdoc --configure .jsdocrc.cjs --destination docs && printf '%s' 'docs.openpgpjs.org' > docs/CNAME",
    "preversion": "rm -rf dist docs node_modules && npm ci && npm test",
    "version": "npm run docs && git add -A docs",
    "postversion": "git push --follow-tags && npm publish"
  },
  "devDependencies": {
    "@eslint/js": "^9.39.3",
    "@noble/ciphers": "^1.3.0",
    "@noble/curves": "^1.9.7",
    "@noble/hashes": "^1.8.0",
    "@openpgp/jsdoc": "^4.0.4",
    "@openpgp/tweetnacl": "^1.0.4-2",
    "@openpgp/unbzip2-stream": "^2.0.0",
    "@openpgp/web-stream-tools": "~0.3.1",
    "@rollup/plugin-alias": "^6.0.0",
    "@rollup/plugin-commonjs": "^29.0.3",
    "@rollup/plugin-node-resolve": "^16.0.3",
    "@rollup/plugin-replace": "^6.0.3",
    "@rollup/plugin-terser": "^0.4.4",
    "@rollup/plugin-typescript": "^12.3.0",
    "@rollup/plugin-wasm": "^6.2.2",
    "@stylistic/eslint-plugin": "^5.10.0",
    "@types/chai": "^5.2.3",
    "@types/node": "^24.12.4",
    "@types/sinon": "^21.0.1",
    "@web/test-runner": "^0.20.2",
    "@web/test-runner-browserstack": "npm:@openpgp/wtr-test-runner-browserstack@0.8.1-patch.0",
    "@web/test-runner-mocha": "^0.9.0",
    "@web/test-runner-playwright": "^0.11.1",
    "argon2id": "^1.0.1",
    "benchmark": "^2.1.4",
    "better-docs": "^2.7.3",
    "bn.js": "^5.2.3",
    "c8": "^10.1.3",
    "chai": "^6.2.2",
    "chai-as-promised": "^8.0.2",
    "cpy-cli": "^6.0.0",
    "eckey-utils": "^0.7.14",
    "eslint": "^9.39.3",
    "eslint-import-resolver-typescript": "^4.4.4",
    "eslint-plugin-chai-friendly": "^1.2.0",
    "eslint-plugin-import": "^2.32.0",
    "eslint-plugin-jsdoc": "^62.9.0",
    "eslint-plugin-unicorn": "^64.0.0",
    "fflate": "^0.8.3",
    "globals": "^17.6.0",
    "mocha": "^11.7.6",
    "playwright": "^1.60.0",
    "rollup": "^4.60.4",
    "sinon": "^21.0.1",
    "ts-node": "^10.9.2",
    "typescript": "^5.9.3",
    "typescript-eslint": "^8.60.0",
    "web-streams-polyfill": "^4.3.0"
  },
  "peerDependencies": {
    "@openpgp/web-stream-tools": "~0.3.0"
  },
  "peerDependenciesMeta": {
    "@openpgp/web-stream-tools": {
      "optional": true
    }
  },
  "overrides": {
    "@web/dev-server-core": "npm:@openpgp/wtr-dev-server-core@0.7.3-patch.1",
    "@web/test-runner-core": "npm:@openpgp/wtr-test-runner-core@0.13.4-patch.3"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/openpgpjs/openpgpjs"
  }
}
