{"id":13673286,"url":"https://github.com/jinjor/deno-watch","last_synced_at":"2025-07-14T08:31:48.135Z","repository":{"id":62421500,"uuid":"164017222","full_name":"jinjor/deno-watch","owner":"jinjor","description":"A pure deno file watcher.","archived":false,"fork":false,"pushed_at":"2020-06-02T17:48:54.000Z","size":23,"stargazers_count":44,"open_issues_count":3,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-20T11:07:13.448Z","etag":null,"topics":["deno"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/jinjor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-03T20:00:22.000Z","updated_at":"2024-06-26T07:27:23.000Z","dependencies_parsed_at":"2022-11-01T17:32:25.291Z","dependency_job_id":null,"html_url":"https://github.com/jinjor/deno-watch","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/jinjor/deno-watch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinjor%2Fdeno-watch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinjor%2Fdeno-watch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinjor%2Fdeno-watch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinjor%2Fdeno-watch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jinjor","download_url":"https://codeload.github.com/jinjor/deno-watch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinjor%2Fdeno-watch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265262622,"owners_count":23736432,"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":["deno"],"created_at":"2024-08-02T10:00:32.702Z","updated_at":"2025-07-14T08:31:47.560Z","avatar_url":"https://github.com/jinjor.png","language":"TypeScript","funding_links":[],"categories":["Uncategorized","Modules","基础设施"],"sub_categories":["Uncategorized","Online Playgrounds","Utils","Assistants","JAM Stack/静态站点"],"readme":"# Deprecated\n\nUse `Deno.watchFs()` instead!\n\n\n# Watch\n\n[![Build Status](https://travis-ci.org/jinjor/deno-watch.svg?branch=master)](https://travis-ci.org/jinjor/deno-watch)\n[![Build status](https://ci.appveyor.com/api/projects/status/ri4l7qbn314e1uww?svg=true)](https://ci.appveyor.com/project/jinjor/deno-watch)\n\nA pure deno file watcher.\n\n## Example\n\n```typescript\nimport watch from \"https://deno.land/x/watch@1.1.0/mod.ts\";\n\nfor await (const changes of watch(\"src\")) {\n  console.log(changes.added);\n  console.log(changes.modified);\n  console.log(changes.deleted);\n}\n```\n\n```typescript\nconst end = watch(\"src\").start(changes =\u003e {\n  console.log(changes);\n});\n```\n\n## Options\n\nWritten in the [source code](./mod.ts).\n\n## Benchmark\n\n```\ntest Benchmark\ngenerated 10930 files.\n[Add]\ntook 183ms to traverse 11232 files\ntook 147ms to traverse 11542 files\ntook 142ms to traverse 11845 files\n[Modify]\ntook 139ms to traverse 11891 files\ntook 136ms to traverse 11891 files\ntook 154ms to traverse 11891 files\n[Delete]\ntook 138ms to traverse 11608 files\ntook 134ms to traverse 11274 files\ntook 145ms to traverse 10960 files\n... ok\n```\n\nTry yourself:\n\n```\ndeno https://deno.land/x/watch/test.ts --allow-write\n```\n\n## Limitations\n\n- Changes within 1s cannot be detected.\n- Symlink may not work on Windows.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinjor%2Fdeno-watch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjinjor%2Fdeno-watch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinjor%2Fdeno-watch/lists"}