{"id":17132173,"url":"https://github.com/bitsofinfo/io-event-reactor-plugin-chokidar","last_synced_at":"2025-03-24T05:18:47.710Z","repository":{"id":57275634,"uuid":"60361244","full_name":"bitsofinfo/io-event-reactor-plugin-chokidar","owner":"bitsofinfo","description":"Chokidar filesystem event monitor plugin for: io-event-reactor","archived":false,"fork":false,"pushed_at":"2017-03-27T16:35:41.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T23:53:41.518Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/bitsofinfo/io-event-reactor","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitsofinfo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-03T16:14:12.000Z","updated_at":"2016-11-10T23:34:12.000Z","dependencies_parsed_at":"2022-09-16T09:52:38.528Z","dependency_job_id":null,"html_url":"https://github.com/bitsofinfo/io-event-reactor-plugin-chokidar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsofinfo%2Fio-event-reactor-plugin-chokidar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsofinfo%2Fio-event-reactor-plugin-chokidar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsofinfo%2Fio-event-reactor-plugin-chokidar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsofinfo%2Fio-event-reactor-plugin-chokidar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitsofinfo","download_url":"https://codeload.github.com/bitsofinfo/io-event-reactor-plugin-chokidar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245212311,"owners_count":20578443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T19:26:16.176Z","updated_at":"2025-03-24T05:18:47.689Z","avatar_url":"https://github.com/bitsofinfo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# io-event-reactor-plugin-chokidar\n\n[![Build Status](https://travis-ci.org/bitsofinfo/io-event-reactor-plugin-chokidar.svg?branch=master)](https://travis-ci.org/bitsofinfo/io-event-reactor-plugin-chokidar) \n\n[Chokidar](https://github.com/paulmillr/chokidar) filesystem event monitor plugin for the [io-event-reactor](https://github.com/bitsofinfo/io-event-reactor) module\n\n[![NPM](https://nodei.co/npm/io-event-reactor-plugin-chokidar.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/io-event-reactor-plugin-chokidar/)\n\n## Usage\n\nTo configure this MonitorPlugin in your application that uses [io-event-reactor](https://github.com/bitsofinfo/io-event-reactor) do the following\n\n```\nnpm install io-event-reactor-plugin-chokidar\n```\n\nThen in your [io-event-reactor](https://github.com/bitsofinfo/io-event-reactor) configuration object that you pass to the `IoReactorService`\nconstructor, you will specify this plugin in the `monitor` block as so:\n\n```\nvar ioReactorServiceConf = {\n\n  ...\n\n  ioReactors: [\n\n          {\n              id: \"reactor1\",\n\n              monitor: {\n                  plugin: \"io-event-reactor-plugin-chokidar\",\n\n                  config: {\n\n                      // the paths to have chokidar monitor\n                      paths: ['path1/','/path2/x', ....],\n\n                      // the options below are standard Chokidar options\n                      // see: https://github.com/paulmillr/chokidar\n                      options: {\n                          alwaysStat: false,\n                          awaitWriteFinish: {\n                              stabilityThreshold: 200,\n                              pollInterval: 100\n                          },\n                          ignoreInitial:true\n                      }\n                  }\n              },\n\n              evaluators: [...],\n              reactors:[...]\n        },\n        ....\n    ]\n\n    ...\n};\n```\n\n### Unit tests\n\nTo run the unit tests go to the root of the project and run the following.\n\n```\nmocha test/all.js\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitsofinfo%2Fio-event-reactor-plugin-chokidar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitsofinfo%2Fio-event-reactor-plugin-chokidar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitsofinfo%2Fio-event-reactor-plugin-chokidar/lists"}