nestjs-security-module
Version:
A plug-and-play NestJS security module with CORS, Helmet, rate limiting, audit logging, CSP, XSS sanitization, and more.
93 lines (92 loc) • 2.86 kB
JSON
{
"name": "nestjs-security-module",
"version": "1.0.1",
"description": "A plug-and-play NestJS security module with CORS, Helmet, rate limiting, audit logging, CSP, XSS sanitization, and more.",
"author": "Yunus Emre Buğuş <contem.fe@gmail.com>",
"license": "MIT",
"private": false,
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -p tsconfig.build.json",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "ts-node test/main.ts",
"start:dev": "ts-node-dev --respawn --transpile-only test/main.ts",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json",
"prepublishOnly": "npm run build"
},
"dependencies": {
"@nestjs/common": "^11.0.1",
"@nestjs/core": "^11.0.1",
"@nestjs/platform-express": "^11.0.1",
"axios": "^1.8.4",
"express-rate-limit": "^7.5.0",
"fs": "^0.0.1-security",
"helmet": "^8.1.0",
"isomorphic-dompurify": "^2.22.0",
"jsdom": "^26.0.0",
"morgan": "^1.10.0",
"path": "^0.12.7",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.1"
},
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.18.0",
"@nestjs/cli": "^11.0.0",
"@nestjs/schematics": "^11.0.0",
"@nestjs/testing": "^11.0.1",
"@swc/cli": "^0.6.0",
"@swc/core": "^1.10.7",
"@types/express": "^5.0.0",
"@types/express-rate-limit": "^5.1.3",
"@types/helmet": "^0.0.48",
"@types/jest": "^29.5.14",
"@types/morgan": "^1.9.9",
"@types/node": "^22.10.7",
"@types/supertest": "^6.0.3",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.2",
"globals": "^16.0.0",
"jest": "^29.7.0",
"prettier": "^3.4.2",
"source-map-support": "^0.5.21",
"supertest": "^7.1.0",
"ts-jest": "^29.3.1",
"ts-loader": "^9.5.2",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.7.3",
"typescript-eslint": "^8.20.0"
},
"keywords": [
"nestjs",
"security",
"cors",
"helmet",
"xss",
"rate-limit",
"csp",
"referrer-policy",
"permissions-policy",
"audit-log",
"middleware",
"security-module"
],
"repository": {
"type": "git",
"url": "https://github.com/contem/nestjs-security-module"
},
"peerDependencies": {
"@nestjs/common": "^11.0.0",
"@nestjs/core": "^11.0.0"
}
}