exp-core
Version:
Core utilities and middleware for building robust Express applications, including standard API responses, async error handling, request sanitization, and extended request types.
78 lines (77 loc) • 2.65 kB
JSON
{
"name": "exp-core",
"version": "1.2.0",
"description": "Core utilities and middleware for building robust Express applications, including standard API responses, async error handling, request sanitization, and extended request types.",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"files": [
"dist/",
"tsconfig.json"
],
"scripts": {
"clean": "rm -rf dist",
"build:cjs": "esbuild --platform=node --bundle --target=es2022 --format=cjs --outfile=dist/index.cjs src/index.ts",
"build:esm": "esbuild --platform=node --bundle --target=es2022 --format=esm --outfile=dist/index.mjs src/index.ts",
"build:types": "dts-bundle-generator --out-file=dist/index.d.ts src/index.ts && cp dist/index.d.ts dist/index.d.cts && cp dist/index.d.ts dist/index.d.mts",
"build": "pnpm run clean && pnpm run build:cjs && pnpm run build:esm && pnpm run build:types",
"spell": "cspell lint .",
"format.check": "prettier . --check",
"format": "prettier . --write",
"lint": "eslint ./src/"
},
"keywords": [
"exp-core",
"express",
"utils",
"helpers",
"express-logger",
"express-middleware",
"express-utils",
"api-response",
"success-response",
"error-response",
"async-wrapper",
"api-error",
"request-validation",
"typescript",
"express5",
"express-core",
"custom-error",
"request-body-initializer",
"auth-request"
],
"author": "Shakti Ranjan Debata <debatashaktiranjan@gmail.com>",
"repository": {
"type": "git",
"url": "git+https://github.com/d-shaktiranjan/exp-core.git"
},
"homepage": "https://github.com/d-shaktiranjan/exp-core/blob/main/README.md",
"license": "MIT",
"devDependencies": {
"@eslint/js": "^9.28.0",
"@types/express": "^5.0.2",
"cspell": "^9.0.2",
"dts-bundle-generator": "^9.5.1",
"esbuild": "^0.25.5",
"eslint": "^9.28.0",
"globals": "^16.2.0",
"prettier": "^3.5.3",
"typescript": "^5.8.3",
"typescript-eslint": "^8.33.0"
},
"packageManager": "pnpm@10.11.0"
}