@mccann-hub/json-logger
Version:
A secure, configurable JSON logger built on Winston for Node.js and Deno applications. Supports custom log levels, structured JSON output, sensitive data sanitization, and error handling for multi-environment setups.
79 lines (78 loc) • 2.27 kB
JSON
{
"name": "@mccann-hub/json-logger",
"version": "0.1.2",
"publishConfig": {
"access": "public"
},
"description": "A secure, configurable JSON logger built on Winston for Node.js and Deno applications. Supports custom log levels, structured JSON output, sensitive data sanitization, and error handling for multi-environment setups.",
"main": "./dist/cjs/index.js",
"scripts": {
"test": "cross-env TSX_TSCONFIG_PATH='./tsconfig.test.json' mocha",
"build:cjs": "tsc --project tsconfig.commonjs.json && tsc-alias -p tsconfig.commonjs.json",
"build:esm": "tsc --project tsconfig.esm.json && tsc-alias -p tsconfig.esm.json",
"build": "npm run build:cjs && npm run build:esm",
"prepublishOnly": "npm run build",
"clean": "node -e \"require('fs').rmSync('./dist', { recursive: true, force: true })\"",
"prebuild": "npm run clean",
"lint": "eslint . --ext .ts,.js --fix"
},
"keywords": [
"winston",
"logger",
"json",
"logging",
"nodejs",
"deno",
"structured-logs",
"error-handling",
"sanitization",
"log-levels",
"colorized-output",
"secure-logging",
"environment",
"configurable",
"multi-environment"
],
"author": "jabez007",
"license": "ISC",
"devDependencies": {
"@types/chai": "^5.0.1",
"@types/mocha": "^10.0.9",
"@types/mock-fs": "^4.13.4",
"@types/node": "^22.9.0",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
"chai": "^5.1.2",
"cross-env": "^7.0.3",
"eslint": "^8.57.1",
"mocha": "^10.8.2",
"mock-fs": "^5.4.1",
"tsc-alias": "^1.8.10",
"tsconfig-paths": "^4.2.0",
"tsx": "^4.19.2",
"typescript": "^5.6.3"
},
"types": "./dist/cjs/index.d.ts",
"module": "./dist/esm/index.js",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
},
"files": [
"dist/**/*",
"README.md"
],
"repository": {
"type": "git",
"url": "git+https://github.com/McCann-Hub/json-logger.git"
},
"bugs": {
"url": "https://github.com/McCann-Hub/json-logger/issues"
},
"homepage": "https://github.com/McCann-Hub/json-logger#readme",
"dependencies": {
"winston": "^3.16.0"
}
}