{"id":19874095,"url":"https://github.com/metarhia/metawatch","last_synced_at":"2025-05-02T10:30:58.915Z","repository":{"id":43099881,"uuid":"299115598","full_name":"metarhia/metawatch","owner":"metarhia","description":"Nested directories watch for node.js 🕵️","archived":false,"fork":false,"pushed_at":"2024-01-24T22:45:53.000Z","size":232,"stargazers_count":15,"open_issues_count":1,"forks_count":4,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-04-14T12:01:36.432Z","etag":null,"topics":["impress","isolate","isolation","metarhia","nodejs","sandbox","sandboxing","v8","vm"],"latest_commit_sha":null,"homepage":"https://metarhia.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metarhia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null},"funding":{"patreon":"tshemsedinov"}},"created_at":"2020-09-27T20:42:13.000Z","updated_at":"2024-06-19T00:13:30.650Z","dependencies_parsed_at":"2024-06-19T00:13:25.715Z","dependency_job_id":"1e41b2ce-16cd-48cd-9be0-1c2028ac70d3","html_url":"https://github.com/metarhia/metawatch","commit_stats":{"total_commits":61,"total_committers":1,"mean_commits":61.0,"dds":0.0,"last_synced_commit":"0ce5964c4aedb93c870ae4c6a62538c5fc88ee48"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metarhia%2Fmetawatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metarhia%2Fmetawatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metarhia%2Fmetawatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metarhia%2Fmetawatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metarhia","download_url":"https://codeload.github.com/metarhia/metawatch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223903480,"owners_count":17222551,"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":["impress","isolate","isolation","metarhia","nodejs","sandbox","sandboxing","v8","vm"],"created_at":"2024-11-12T16:21:39.653Z","updated_at":"2024-11-12T16:21:40.469Z","avatar_url":"https://github.com/metarhia.png","language":"JavaScript","funding_links":["https://patreon.com/tshemsedinov"],"categories":[],"sub_categories":[],"readme":"# Deep nested directories watch for node.js\n\n[![ci status](https://github.com/metarhia/metawatch/workflows/Testing%20CI/badge.svg)](https://github.com/metarhia/metawatch/actions?query=workflow%3A%22Testing+CI%22+branch%3Amaster)\n[![snyk](https://snyk.io/test/github/metarhia/metawatch/badge.svg)](https://snyk.io/test/github/metarhia/metawatch)\n[![npm version](https://badge.fury.io/js/metawatch.svg)](https://badge.fury.io/js/metawatch)\n[![npm downloads/month](https://img.shields.io/npm/dm/metawatch.svg)](https://www.npmjs.com/package/metawatch)\n[![npm downloads](https://img.shields.io/npm/dt/metawatch.svg)](https://www.npmjs.com/package/metawatch)\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/metarhia/metawatch/blob/master/LICENSE)\n\n- Watch directories recursive\n- Rebuild recursive when new directories found or old directories remove\n- Deduplicate events with debounce\n\n## Usage\n\n```js\nconst metawatch = require('metawatch');\n\nconst watcher = new metawatch.DirectoryWatcher({ timeout: 200 });\nwatcher.watch('/home/marcus/Downloads');\nwatcher.watch('/home/marcus/Documents');\n\nwatcher.on('change', (fileName) =\u003e {\n  console.log({ changed: fileName });\n});\n\nwatcher.on('delete', (fileName) =\u003e {\n  console.log({ deleted: fileName });\n});\n\nwatcher.on('before', (changes) =\u003e {\n  console.log({ changes });\n});\n\nwatcher.on('after', (changes) =\u003e {\n  console.log({ changes });\n});\n```\n\n## Contributors\n\n- Timur Shemsedinov \u003ctimur.shemsedinov@gmail.com\u003e\n- See github for full [contributors list](https://github.com/metarhia/metawatch/graphs/contributors)\n\n## License \u0026 Contributors\n\nCopyright (c) 2020-2024 [Metarhia contributors](https://github.com/metarhia/metawatch/graphs/contributors).\nMetawatch is [MIT licensed](./LICENSE).\nMetawatch is a part of [Metarhia](https://github.com/metarhia) technology stack.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetarhia%2Fmetawatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetarhia%2Fmetawatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetarhia%2Fmetawatch/lists"}