@anot/http-response-builder
Version:
A robust and type-safe library for constructing HTTP responses with optional paging and metadata. Designed for TypeScript and JavaScript, it ensures correct typing while simplifying the creation of various HTTP response types.
53 lines (52 loc) • 1.71 kB
JSON
{
"name": "@anot/http-response-builder",
"version": "0.1.4",
"publishConfig": {
"access": "public"
},
"description": "A robust and type-safe library for constructing HTTP responses with optional paging and metadata. Designed for TypeScript and JavaScript, it ensures correct typing while simplifying the creation of various HTTP response types.",
"main": "dist/es5/index.cjs",
"module": "dist/es6/index.js",
"types": "dist/d.ts/index.d.ts",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build:es5": "tsc --project tsconfig.es5.json",
"build:es6": "tsc --project tsconfig.es6.json",
"build:ts": "tsc --project tsconfig.d.ts.json",
"build": "npm run build:es5 && npm run build:es6 && npm run build:ts && npm run rename-to-cjs",
"rename-to-cjs": "node -e \"const fs=require('fs');const path=require('path');const dir='./dist/es5';fs.readdirSync(dir).forEach(f=>{if(f.endsWith('.js')){fs.renameSync(path.join(dir,f),path.join(dir,f.replace('.js','.cjs')))}})\""
},
"exports": {
".": {
"require": "./dist/es5/index.cjs",
"import": "./dist/es6/index.js",
"types": "./dist/d.ts/index.d.ts"
}
},
"keywords": [
"http",
"response",
"javascript",
"typescript",
"nodejs",
"api",
"rest",
"http-status",
"response-builder"
],
"author": "kyanh",
"license": "ISC",
"devDependencies": {
"@types/node": "^22.10.5",
"@typescript-eslint/eslint-plugin": "^8.19.1",
"@typescript-eslint/parser": "^8.19.1",
"eslint": "^9.17.0",
"tsx": "^4.19.2",
"typescript": "^5.7.3"
},
"dependencies": {
"dist": "^0.1.2",
"rename": "^1.0.4"
}
}