UNPKG

node-red-contrib-code-analyzer

Version:

A Node-RED package that provides a background service to detect debugging artifacts in function nodes across Node-RED flows. Features performance monitoring (CPU, memory, event loop), queue monitoring, and Slack alerting.

78 lines (77 loc) 1.78 kB
{ "name": "node-red-contrib-code-analyzer", "version": "0.3.1", "description": "A Node-RED package that provides a background service to detect debugging artifacts in function nodes across Node-RED flows. Features performance monitoring (CPU, memory, event loop), queue monitoring, and Slack alerting.", "main": "nodes/analyzer.js", "scripts": { "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "lint": "eslint . --fix" }, "author": "", "license": "ISC", "keywords": [ "node-red", "code-analyzer", "debugging", "quality", "monitoring", "performance", "cpu", "memory", "slack" ], "node-red": { "version": ">=3.0.0", "nodes": { "code-analyzer": "nodes/analyzer.js" } }, "dependencies": { "is-docker": "^3.0.0", "meriyah": "^6.1.4", "sqlite3": "^5.1.7" }, "devDependencies": { "eslint": "^8.57.0", "jest": "^29.7.0", "node-red-node-test-helper": "^0.3.4" }, "jest": { "testEnvironment": "node", "setupFilesAfterEnv": [ "<rootDir>/tests/setup.js" ], "collectCoverageFrom": [ "lib/**/*.js", "!**/node_modules/**", "!lib/performance-db.js", "!lib/performance-monitor.js" ], "coverageDirectory": "coverage", "coverageReporters": [ "text", "lcov", "html", "json-summary" ], "testMatch": [ "**/tests/**/*.test.js" ], "coverageThreshold": { "lib/detector.js": { "branches": 85, "functions": 100, "lines": 95, "statements": 95 }, "lib/slack-notifier.js": { "branches": 70, "functions": 75, "lines": 60, "statements": 60 } } } }