1 | {
|
2 | "name": "bitfield",
|
3 | "description": "a simple bitfield, compliant with the BitTorrent spec",
|
4 | "version": "4.2.0",
|
5 | "author": "Felix Boehm <me@feedic.com>",
|
6 | "funding": {
|
7 | "url": "https://github.com/sponsors/fb55"
|
8 | },
|
9 | "sideEffects": false,
|
10 | "main": "lib/index.js",
|
11 | "types": "lib/index.d.ts",
|
12 | "module": "lib/esm/index.js",
|
13 | "exports": {
|
14 | "require": "./lib/index.js",
|
15 | "import": "./lib/esm/index.js"
|
16 | },
|
17 | "directories": {
|
18 | "lib": "lib/"
|
19 | },
|
20 | "files": [
|
21 | "lib/**/*"
|
22 | ],
|
23 | "bugs": {
|
24 | "url": "https://github.com/fb55/bitfield/issues"
|
25 | },
|
26 | "devDependencies": {
|
27 | "@types/jest": "^29.5.11",
|
28 | "@types/node": "^20.10.6",
|
29 | "@typescript-eslint/eslint-plugin": "^6.17.0",
|
30 | "@typescript-eslint/parser": "^6.17.0",
|
31 | "eslint": "^8.56.0",
|
32 | "eslint-config-prettier": "^9.1.0",
|
33 | "eslint-plugin-n": "^16.6.1",
|
34 | "jest": "^29.7.0",
|
35 | "prettier": "^3.1.1",
|
36 | "ts-jest": "^29.1.1",
|
37 | "typescript": "^5.3.3"
|
38 | },
|
39 | "engines": {
|
40 | "node": ">=8"
|
41 | },
|
42 | "keywords": [
|
43 | "bitfield",
|
44 | "buffer",
|
45 | "bittorrent"
|
46 | ],
|
47 | "license": "MIT",
|
48 | "repository": {
|
49 | "type": "git",
|
50 | "url": "https://github.com/fb55/bitfield"
|
51 | },
|
52 | "scripts": {
|
53 | "test": "npm run test:jest && npm run lint",
|
54 | "test:jest": "jest",
|
55 | "lint": "npm run lint:es && npm run lint:prettier",
|
56 | "lint:es": "eslint .",
|
57 | "lint:prettier": "npm run format:prettier:raw -- --check",
|
58 | "format": "npm run format:es && npm run format:prettier",
|
59 | "format:es": "npm run lint:es -- --fix",
|
60 | "format:prettier": "npm run format:prettier:raw -- --write",
|
61 | "format:prettier:raw": "prettier '**/*.{{m,c,}js,ts,md,json,yml}'",
|
62 | "build": "npm run build:cjs && npm run build:esm",
|
63 | "build:cjs": "tsc --sourceRoot https://raw.githubusercontent.com/fb55/bitfield/$(git rev-parse HEAD)/src/",
|
64 | "build:esm": "npm run build:cjs -- --module esnext --target es2019 --outDir lib/esm && echo '{\"type\":\"module\"}' > lib/esm/package.json",
|
65 | "prepare": "npm run build"
|
66 | },
|
67 | "jest": {
|
68 | "preset": "ts-jest",
|
69 | "testEnvironment": "node",
|
70 | "moduleNameMapper": {
|
71 | "^(.*)\\.js$": "$1"
|
72 | }
|
73 | },
|
74 | "prettier": {
|
75 | "tabWidth": 4
|
76 | }
|
77 | }
|