{
  "name": "@digitalcredentials/sha256-universal",
  "description": "A minimal Typescript SHA-256 digest library for Node.js, browsers, and React Native.",
  "version": "1.1.1",
  "scripts": {
    "build": "npm run clear && tsc -d && tsc -p tsconfig.esm.json",
    "clear": "rimraf dist/*",
    "lint": "eslint .",
    "lint:fix": "eslint --fix .",
    "prepare": "npm run build",
    "prettier": "prettier src --write",
    "rebuild": "npm run clear && npm run build",
    "test": "npm run lint && npm run test-node",
    "test-karma": "karma start karma.conf.js",
    "test-node": "cross-env NODE_ENV=test TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register 'test/*.ts'"
  },
  "files": [
    "dist",
    "README.md",
    "LICENSE.md",
    "CHANGELOG.md"
  ],
  "main": "dist/index.js",
  "module": "dist/esm/index.js",
  "types": "dist/index.d.ts",
  "dependencies": {
    "fast-text-encoding": "^1.0.6",
    "isomorphic-webcrypto": "^2.3.8"
  },
  "devDependencies": {
    "@types/chai": "^4.3.4",
    "@types/mocha": "^10.0.1",
    "@types/node": "^18.11.10",
    "@typescript-eslint/eslint-plugin": "^5.45.0",
    "@typescript-eslint/parser": "^5.45.0",
    "chai": "^4.3.7",
    "cross-env": "^7.0.3",
    "eslint": "^8.28.0",
    "eslint-config-prettier": "^8.5.0",
    "eslint-config-standard-with-typescript": "^23.0.0",
    "eslint-plugin-import": "^2.26.0",
    "eslint-plugin-node": "^11.1.0",
    "eslint-plugin-prettier": "^4.2.1",
    "eslint-plugin-promise": "^6.1.1",
    "karma": "^6.4.1",
    "karma-chai": "^0.1.0",
    "karma-chrome-launcher": "^3.1.1",
    "karma-mocha": "^2.0.1",
    "karma-mocha-reporter": "^2.2.5",
    "karma-sourcemap-loader": "^0.3.8",
    "karma-typescript": "^5.5.3",
    "mocha": "^10.1.0",
    "prettier": "^2.8.0",
    "rimraf": "^3.0.2",
    "ts-node": "^10.9.1",
    "typescript": "^4.9.3"
  },
  "browser": {
    "crypto": false,
    "./src/sha256digest.js": "./src/sha256digest-browser.js",
    "fast-text-encoding": false,
    "isomorphic-webcrypto": false
  },
  "react-native": {
    "crypto": false,
    "./src/sha256digest.js": "./src/sha256digest-reactnative.js",
    "./src/sha256digest-browser.js": false
  },
  "publishConfig": {
    "access": "public"
  },
  "mocha": {
    "require": "ts-node/register",
    "extension": [
      "ts"
    ],
    "spec": "test/**/*.ts"
  },
  "keywords": [
    "dcc",
    "sha256",
    "sha-256"
  ],
  "engines": {
    "node": ">=16.0"
  },
  "author": {
    "name": "Digital Credentials Consortium",
    "url": "https://github.com/digitalcredentials/"
  },
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/digitalcredentials/sha256-universal"
  },
  "homepage": "https://github.com/digitalcredentials/sha256-universal",
  "bugs": "https://github.com/digitalcredentials/sha256-universal/issues"
}
