UNPKG

node-red-contrib-topic-timeframe-trigger

Version:

Node-RED node which observes input topics and only produces an output if n distinct topics are received n times each within the specified time frame.

95 lines (94 loc) 2.56 kB
{ "name": "node-red-contrib-topic-timeframe-trigger", "version": "1.0.3", "description": "Node-RED node which observes input topics and only produces an output if n distinct topics are received n times each within the specified time frame.", "main": "index.js", "keywords": [ "node-red", "topic", "timeframe", "trigger" ], "scripts": { "test": "mocha -R spec ./tests/test.js", "update-dependencies": "./node_modules/.bin/ncu -u && npm install", "lint": "eslint ." }, "author": "@biddster", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/biddster/node-red-contrib-topic-timeframe-trigger.git" }, "bugs": { "url": "https://github.com/biddster/node-red-contrib-topic-timeframe-trigger/issues" }, "dependencies": { "lodash": "^4.17.21" }, "devDependencies": { "@hapi/eslint-config-hapi": "13.0.2", "@hapi/eslint-plugin-hapi": "4.3.6", "babel-eslint": "10.1.0", "chai": "^4.3.6", "eslint": "^8.11.0", "eslint-config-biddster": "^0.6.0", "husky": "^7.0.4", "lint-staged": "^12.3.7", "mocha": "^9.2.2", "node-red-contrib-mock-node": "^0.5.3", "npm-check-updates": "^12.5.4", "prettier": "^2.6.0", "release-it": "^14.13.0" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "eslintConfig": { "extends": "@hapi/eslint-config-hapi", "parser": "babel-eslint", "parserOptions": { "ecmaVersion": 2020, "sourceType": "script" }, "overrides": [ { "files": [ "*.js" ], "rules": { "@hapi/hapi/scope-start": "off", "comma-dangle": "off", "brace-style": "off", "strict": "off" } } ] }, "prettier": { "singleQuote": true, "tabWidth": 4, "printWidth": 96 }, "nyc": { "exclude": "tests/**" }, "lint-staged": { "*.js": [ "prettier --write", "eslint", "git add" ], "*.{md,html,json}": [ "prettier --write", "git add" ] }, "node-red": { "nodes": { "topic-timeframe-trigger": "index.js" } } }