UNPKG

reserve

Version:

Lightweight http server statically configurable using regular expressions

78 lines (77 loc) 2.49 kB
{ "name": "reserve", "version": "2.2.0", "description": "Lightweight http server statically configurable using regular expressions", "main": "./dist/index.js", "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs", "types": "./@types/index.d.ts" } }, "files": [ "dist/*.js", "dist/*.mjs", "@types/*.d.ts" ], "bin": { "reserve": "dist/cli.js" }, "types": "./@types/index.d.ts", "engines": { "node": ">=12.22.12" }, "scripts": { "build:sources": "node build/mime --silent && node build/error", "prebuild": "npm run build:sources", "build": "node build/bundle && terser dist/core.js --compress --mangle -o dist/core.js && terser src/cli.js --compress --keep-fnames --mangle -o dist/cli.js && node build/size", "pretest:basic": "npm run build:sources", "test:basic": "mocha && node tests/integration.mjs", "pretest": "npm run build:sources", "test": "standard && nyc mocha && node tests/integration.mjs && npm run test:types", "test:build": "node tests/integration.mjs dist && node tests/integration.mjs mock && node tests/integration.mjs mjs", "test:mutation": "stryker run", "lint": "standard --fix", "mocha": "mocha", "mocha-dbg": "node --inspect-brk node_modules/mocha/bin/_mocha", "cover": "nyc mocha && nyc report --reporter=lcov", "perf-serve": "node . --config ./tests/http.json --silent", "perf-test": "autocannon localhost:5000", "perf": "start-server-and-test perf-test http-get://localhost:5000 perf-serve", "reserve": "node ./samples/reserve", "test:types": "tsc --skipLibCheck tests/types.ts" }, "repository": { "type": "git", "url": "git+https://github.com/ArnaudBuchholz/reserve.git" }, "keywords": [ "http", "serve", "static", "json", "regexp" ], "author": "Arnaud Buchholz <arnaud.buchholz@free.fr>", "license": "MIT", "bugs": { "url": "https://github.com/ArnaudBuchholz/reserve/issues" }, "homepage": "https://github.com/ArnaudBuchholz/reserve#readme", "devDependencies": { "@stryker-mutator/core": "^8.7.1", "@stryker-mutator/mocha-runner": "^8.7.1", "@types/node": "^22.14.1", "cors": "^2.8.5", "eslint-utils": "^3.0.0", "mocha": "^10.8.2", "mock-require": "^3.0.3", "nyc": "^17.1.0", "punycache": "^1.0.0", "reserve": "", "standard": "^17.1.2", "terser": "^5.39.0", "typescript": "^5.8.3" } }