{"_id":"@403name/fsevent","_rev":"4-1a2763c59f820cb004e4877bc20339ef","name":"@403name/fsevent","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@403name/fsevent","version":"1.0.0","keywords":["fsevents","filesystem","watch","fs","file-watcher","macos","native","events"],"license":"MIT","_id":"@403name/fsevent@1.0.0","maintainers":[{"name":"403name","email":"403name@proton.me"}],"homepage":"https://github.com/fs-events/fsevent#readme","bugs":{"url":"https://github.com/fs-events/fsevent/issues"},"dist":{"shasum":"778f59af5df6463c7969bf25420cb1ef1c76df29","tarball":"https://registry.npmjs.org/@403name/fsevent/-/fsevent-1.0.0.tgz","fileCount":3,"integrity":"sha512-LpqxdrAxg98zF2Fam3GrOcg888Bp9r2u/nhUtUkiOsmOgw2BoAFPd06lK5da0uxjW8ylVzyMH3CfuN59cIYs6Q==","signatures":[{"sig":"MEQCIExMxL+pDW25FuiiC7RS0FTAxyzUj3Wpbg7Lg143ZdWZAiBLJnwkG31dUvP0Jhf/dBJvCpKHY60M+KdzxXrYvE9RUQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6528},"main":"index.js","engines":{"node":">=10.0.0"},"gitHead":"ca7f99d52a76f509d9fb1b45ac9e51f1179796c5","scripts":{"test":"node test.js"},"_npmUser":{"name":"403name","email":"403name@proton.me"},"repository":{"url":"git+https://github.com/fs-events/fsevent.git","type":"git"},"_npmVersion":"10.8.2","description":"Native filesystem event watcher for Node.js — lightweight FSEvents wrapper with fallback polling","directories":{},"_nodeVersion":"20.19.6","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fsevent_1.0.0_1780865689353_0.11086461826520067","host":"s3://npm-registry-packages-npm-production"},"deprecated":"older versions contain dev artifacts — use 1.0.2+"},"1.0.1":{"name":"@403name/fsevent","version":"1.0.1","keywords":["fsevents","filesystem","watch","fs","file-watcher","macos","native","events"],"license":"MIT","_id":"@403name/fsevent@1.0.1","maintainers":[{"name":"403name","email":"403name@proton.me"}],"homepage":"https://github.com/fs-events/fsevent#readme","bugs":{"url":"https://github.com/fs-events/fsevent/issues"},"dist":{"shasum":"28fea122481bb1c8a6a18538d100d11088fe2c50","tarball":"https://registry.npmjs.org/@403name/fsevent/-/fsevent-1.0.1.tgz","fileCount":3,"integrity":"sha512-vvAcdLAAwsshqAuilhO/8JCiYcj4kVqa+UYT3xMhQe3wlewHV7rQZPP2E2h4MgWn/xpVu/D0aqvaI9pFIQbtlQ==","signatures":[{"sig":"MEUCIFU5aS2OON67pPq/4Iq2MuBkEG5/Q4hUJLrq8qGOtcIwAiEAgPrwVslTzRjzGMLUm0GTmU2eqePzXjqDDwubDF2KF1A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6109},"main":"index.js","engines":{"node":">=10.0.0"},"gitHead":"ca7f99d52a76f509d9fb1b45ac9e51f1179796c5","scripts":{"test":"node test.js"},"_npmUser":{"name":"403name","email":"403name@proton.me"},"repository":{"url":"git+https://github.com/fs-events/fsevent.git","type":"git"},"_npmVersion":"10.8.2","description":"Native filesystem event watcher for Node.js — lightweight FSEvents wrapper with fallback polling","directories":{},"_nodeVersion":"20.19.6","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fsevent_1.0.1_1780865811406_0.06309122808896328","host":"s3://npm-registry-packages-npm-production"},"deprecated":"older versions contain dev artifacts — use 1.0.2+"},"1.0.2":{"name":"@403name/fsevent","version":"1.0.2","keywords":["fsevents","filesystem","watch","fs","file-watcher","macos","native","events"],"license":"MIT","_id":"@403name/fsevent@1.0.2","maintainers":[{"name":"403name","email":"403name@proton.me"}],"homepage":"https://github.com/fs-events/fsevent#readme","bugs":{"url":"https://github.com/fs-events/fsevent/issues"},"dist":{"shasum":"8d849b92c6d198c753ed971af2f5420ea658f009","tarball":"https://registry.npmjs.org/@403name/fsevent/-/fsevent-1.0.2.tgz","fileCount":3,"integrity":"sha512-HalRxO+C4kyg7cbAe6rlPlxAYQ/ji3WrW89jTTFyf62uFmu4KzcJa6BXq5IaTwiL4TbnPaY4HG/uEuHJd7gAvg==","signatures":[{"sig":"MEYCIQDyz0e0DGkW8aUJgg7HSc1HWUcTaKVT4RC/I7bYoAT8IAIhAM3pybre5cbup+qWs1kSPDVrSa+lqaprliydDfQM5wE2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4110},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"ca7f99d52a76f509d9fb1b45ac9e51f1179796c5","scripts":{"test":"node test.js"},"_npmUser":{"name":"403name","email":"403name@proton.me"},"repository":{"url":"git+https://github.com/fs-events/fsevent.git","type":"git"},"_npmVersion":"10.8.2","description":"Native filesystem event watcher for Node.js — lightweight FSEvents wrapper with fallback polling","directories":{},"sideEffects":false,"_nodeVersion":"20.19.6","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/fsevent_1.0.2_1780866204320_0.4846873755853507","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-06-07T20:54:49.201Z","modified":"2026-06-07T21:06:39.567Z","1.0.0":"2026-06-07T20:54:49.475Z","1.0.1":"2026-06-07T20:56:51.536Z","1.0.2":"2026-06-07T21:03:24.450Z"},"bugs":{"url":"https://github.com/fs-events/fsevent/issues"},"license":"MIT","homepage":"https://github.com/fs-events/fsevent#readme","keywords":["fsevents","filesystem","watch","fs","file-watcher","macos","native","events"],"repository":{"url":"git+https://github.com/fs-events/fsevent.git","type":"git"},"description":"Native filesystem event watcher for Node.js — lightweight FSEvents wrapper with fallback polling","maintainers":[{"name":"403name","email":"403name@proton.me"}],"readme":"# fsevent\n\nCross-platform filesystem event watcher for Node.js with recursive support.\n\n## Why fsevent?\n\nNative `fs.watch` wrapper with:\n- Recursive directory watching\n- Event debouncing (auto-mitigates duplicate events)\n- Path filtering\n- Zero dependencies\n\n## Installation\n\n```bash\nnpm install fsevent\n```\n\n## Usage\n\n```javascript\nconst { watch } = require('fsevent');\n\n// Watch directory\nconst watcher = watch('/path/to/dir', { recursive: true }, (event) => {\n  console.log('File changed:', event.file, 'Type:', event.type);\n});\n\n// Later: stop watching\nwatcher.close();\n```\n\n## API\n\n### `watch(rootDir, options?, callback?): FSEvent`\n\nCreate a new filesystem watcher.\n\n**Options:**\n- `recursive` (boolean) — Watch subdirectories (default: false)\n\n**Events:**\n- `change` — `{ type: 'rename' | 'change', file: string, timestamp: number }`\n- `error` — Error object\n- `ready` — Watcher is initialized\n\n### `FSEvent.close()`\n\nStop watching and clean up resources.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}