{
  "name": "@substrate-system/bencode",
  "description": "Bencode de/encoder",
  "version": "4.1.11",
  "type": "module",
  "exports": {
    ".": {
      "import": "./dist/index.js",
      "require": "./dist/index.cjs"
    }
  },
  "scripts": {
    "benchmark": "nanobench benchmark/*.js",
    "lint": "eslint \"./**/*.{ts,js}\"",
    "build-tests": "esbuild test/index.ts --target=es2020 --bundle --keep-names > test/test-bundle.js",
    "test": "npm run build && esbuild ./test/index.ts --format=esm --platform=node --bundle > test/index.js && node test/index.js",
    "test-tape-run": "cat test/index.html | tape-run --input=html --static=test | tap-spec",
    "build-cjs": "esbuild src/*.ts --format=cjs --keep-names --tsconfig=tsconfig.build.json --outdir=./dist --out-extension:.js=.cjs --sourcemap",
    "build-cjs:min": "esbuild src/*.ts --format=cjs --minify --keep-names --tsconfig=tsconfig.build.json --outdir=./dist --out-extension:.js=.min.cjs --sourcemap",
    "build-esm": "esbuild src/*.ts --format=esm --metafile=dist/meta.json --keep-names --tsconfig=tsconfig.build.json --outdir=./dist --sourcemap && tsc --emitDeclarationOnly --project tsconfig.build.json --outDir dist",
    "build-esm:min": "esbuild ./src/*.ts --format=esm --keep-names --bundle --tsconfig=tsconfig.build.json --minify --out-extension:.js=.min.js --outdir=./dist --sourcemap",
    "build-docs": "npx typedoc src/*.ts --tsconfig tsconfig.build.json",
    "build": "mkdir -p ./dist && rm -rf ./dist/* && npm run build-cjs && npm run build-esm && npm run build-esm:min && npm run build-cjs:min",
    "toc": "markdown-toc --maxdepth 3 -i README.md",
    "preversion": "npm run lint",
    "version": "npm run toc && git add README.md",
    "postversion": "git push --follow-tags && npm publish",
    "prepublishOnly": "npm run build"
  },
  "dependencies": {
    "@substrate-system/uint8-util": "^2.2.18"
  },
  "devDependencies": {
    "@substrate-system/debug": "^0.7.12",
    "@substrate-system/tapzero": "^0.10.5",
    "@types/node": "^22.10.1",
    "@typescript-eslint/eslint-plugin": "^8.0.0",
    "@typescript-eslint/parser": "^8.0.0",
    "bencoding": "latest",
    "bncode": "latest",
    "btparse": "latest",
    "dht-bencode": "latest",
    "dht.js": "latest",
    "esbuild": "^0.24.0",
    "eslint": "^8.57.0",
    "eslint-config-standard": "^17.1.0",
    "markdown-toc": "^1.2.0",
    "nanobench": "3.0.0",
    "tap-spec": "5.0.0",
    "typedoc": "^0.27.0",
    "typescript": "^5.4.5"
  },
  "contributors": [
    {
      "name": "Mark Schmale",
      "email": "masch@masch.it",
      "url": "http://masch.it/"
    },
    {
      "name": "Jonas Hermsmeier",
      "email": "jhermsmeier@gmail.com",
      "url": "https://jhermsmeier.de/"
    },
    {
      "name": "Nick Thomas",
      "email": "nichoth@nichoth.com",
      "url": "https://nichoth.com/"
    }
  ],
  "bugs": {
    "url": "https://github.com/substrate-system/node-bencode/issues"
  },
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git://github.com/substrate-system/node-bencode.git"
  },
  "keywords": [
    "bdecode",
    "bencode",
    "bencoding",
    "bittorrent",
    "torrent"
  ]
}
