ecs-logs-js
Version:
Simple Node.js console logger that outputs human friendly and ecs-logs compatible messages
115 lines (114 loc) • 2.58 kB
JSON
{
"name": "ecs-logs-js",
"version": "1.1.0",
"description": "Simple Node.js console logger that outputs human friendly and ecs-logs compatible messages",
"author": "Roland Warmerdam (https://roland.codes)",
"keywords": [
"ecs-logs",
"log",
"logger",
"logging",
"ECS",
"AWS",
"segment"
],
"repository": "segmentio/ecs-logs-js",
"license": "MIT",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"files": [
"dist/src",
"src"
],
"scripts": {
"prepublishOnly": "yarn clean && yarn build",
"test": "FORCE_COLOR=1 jest",
"lint": "eslint '**/*.ts'",
"build": "tsc",
"clean": "rimraf dist"
},
"engines": {
"node": ">=10"
},
"dependencies": {
"chalk": "^4.1.2",
"extract-stack": "^2.0.0",
"fast-safe-stringify": "^2.0.7",
"js-yaml": "^3.13.1",
"replace-string": "^3.0.0",
"serialize-error": "^6.0.0"
},
"devDependencies": {
"@babel/preset-typescript": "^7.23.3",
"@types/jest": "^29.5.11",
"@types/js-yaml": "^3.12.3",
"@types/node": "^20",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"husky": "^4.2.3",
"jest": "^29.7.0",
"jest-date-mock": "^1.0.8",
"lint-staged": "^10.0.9",
"prettier": "^2.0.2",
"rimraf": "^3.0.0",
"ts-jest": "^29.1.1",
"typescript": "^5.3.3"
},
"resolutions": {
"ansi-regex": "^5.0.1",
"@babel/traverse": "^7.23.6",
"@jest/schemas": "^29.6.3",
"json-schema": "^0.4.0",
"json5": "^2.2.3",
"minimist": "^1.2.8",
"strip-ansi": "^6.0.1"
},
"eslintIgnore": [
"/dist/"
],
"eslintConfig": {
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"env": {
"node": true,
"jest": true
}
},
"prettier": {
"semi": false,
"singleQuote": true,
"printWidth": 120
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"clearMocks": true,
"testPathIgnorePatterns": [
"<rootDir>/dist/"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write"
],
"*.{yml,md,json}": [
"prettier --write"
]
}
}