bencodec
Version:
Universal library for decoding and encoding bencode data
67 lines (66 loc) • 1.54 kB
JSON
{
"name": "bencodec",
"version": "4.1.0",
"description": "Universal library for decoding and encoding bencode data",
"type": "module",
"main": "./lib/index.cjs",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
"exports": {
".": {
"import": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
},
"require": {
"types": "./lib/index.d.cts",
"default": "./lib/index.cjs"
}
}
},
"sideEffects": false,
"scripts": {
"build": "tsup",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "npm run lint && node --experimental-vm-modules ./node_modules/.bin/jest --runInBand",
"prepare": "npm run build",
"prepublishOnly": "npm run lint && npm test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/isolomak/bencodec.git"
},
"keywords": [
"bencode",
"codec",
"bittorrent",
"torrent",
"universal",
"browser",
"deno",
"bun",
"decode",
"encode"
],
"author": "isolomak",
"license": "MIT",
"bugs": {
"url": "https://github.com/isolomak/bencodec/issues"
},
"homepage": "https://github.com/isolomak/bencodec#readme",
"devDependencies": {
"@stylistic/eslint-plugin": "^5.6.1",
"@types/jest": "^30.0.0",
"@types/node": "^25.0.1",
"@typescript-eslint/parser": "^8.50.0",
"jest": "^30.2.0",
"ts-jest": "^29.4.6",
"tsup": "^8.5.1",
"typescript": "^5.9.3"
},
"files": [
"lib/**/*",
"LICENSE.md"
]
}