{"_id":"@arc2898/watchdog","_rev":"2-b478a28c4776d53b647c3f4119ee75bf","name":"@arc2898/watchdog","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@arc2898/watchdog","version":"1.0.0","keywords":["watch","file","trigger","ent","cli"],"author":{"name":"ARC","email":"rc002898@gmail.com"},"license":"MIT","_id":"@arc2898/watchdog@1.0.0","maintainers":[{"name":"arc2898","email":"rc002894@gmail.com"}],"homepage":"https://github.com/arc2898/watchdog#readme","bugs":{"url":"https://github.com/arc2898/watchdog/issues"},"bin":{"watchdog":"dist/cli.js"},"dist":{"shasum":"cc75f5bbdaa8e3c1138cf937faf09fa4cdb68c36","tarball":"https://registry.npmjs.org/@arc2898/watchdog/-/watchdog-1.0.0.tgz","fileCount":10,"integrity":"sha512-PGRTKPrcKSi7hwFPRrvgBhcl7g76EARsFOOK2VBN9BK2OvSPrrx0OzIUlIjbqbadU7islkA6CJYPb9oxiA3SaA==","signatures":[{"sig":"MEUCIQCqsuD274HouOfcIwmFSz+38Uf4cRELtXH+FhB3ccHxLAIgGEe7BL3FKsG2RqBZkq3OFdPNPOFFghJJivQrVUUahF4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9424},"main":"dist/cli.js","types":"./dist/cli.d.ts","gitHead":"439bffc46d8d8291c6136216d55d03e73d24330f","scripts":{"test":"vitest run","build":"tsc"},"_npmUser":{"name":"arc2898","email":"rc002894@gmail.com"},"repository":{"url":"git+https://github.com/arc2898/watchdog.git","type":"git"},"_npmVersion":"11.11.0","description":"Watch files/dirs, trigger actions. Like entr but with config files and queuing.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"chalk":"^5.4.1","chokidar":"^4.0.0","commander":"^12.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/watchdog_1.0.0_1775882345673_0.49308412534460144","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@arc2898/watchdog","version":"1.0.1","description":"Watch files/dirs, trigger actions. Like entr but with config files and queuing.","main":"dist/cli.js","bin":{"watchdog":"dist/cli.js"},"scripts":{"build":"tsc","test":"vitest run"},"keywords":["watch","file","trigger","ent","cli"],"license":"MIT","author":{"name":"ARC","email":"rc002898@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/arc2898/watchdog.git"},"dependencies":{"commander":"^12.0.0","chalk":"^5.4.1","chokidar":"^4.0.0"},"devDependencies":{"@types/node":"^22.0.0","typescript":"^5.7.0","vitest":"^3.0.0"},"gitHead":"aeba6c9b15a95b88b26b2a973573adb4e07eb707","types":"./dist/cli.d.ts","_id":"@arc2898/watchdog@1.0.1","bugs":{"url":"https://github.com/arc2898/watchdog/issues"},"homepage":"https://github.com/arc2898/watchdog#readme","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-iHgSFLi3J6FRBMGNouDjdk4JrPLJbIhlUvbPMcjI2R5ydXFGwRqEr4bq5NVL0fWo9ymZZZ69KCVFVlCUg4/FpQ==","shasum":"fcf1fbb6f8afeed70b86bb6d2d1fe1cf86f4c83c","tarball":"https://registry.npmjs.org/@arc2898/watchdog/-/watchdog-1.0.1.tgz","fileCount":10,"unpackedSize":9503,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIB0iEZp5/KdRKwE0RhcY2LbEJJw+NNwnId4szwvce2sRAiBzr42+vW1S9npJRF90YF8C9M6UwdNwI/pZAOjVjQBogg=="}]},"_npmUser":{"name":"arc2898","email":"rc002894@gmail.com"},"directories":{},"maintainers":[{"name":"arc2898","email":"rc002894@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/watchdog_1.0.1_1775887927545_0.48062424467557485"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-11T04:39:05.580Z","modified":"2026-04-11T06:12:07.829Z","1.0.0":"2026-04-11T04:39:05.805Z","1.0.1":"2026-04-11T06:12:07.708Z"},"bugs":{"url":"https://github.com/arc2898/watchdog/issues"},"author":{"name":"ARC","email":"rc002898@gmail.com"},"license":"MIT","homepage":"https://github.com/arc2898/watchdog#readme","keywords":["watch","file","trigger","ent","cli"],"repository":{"type":"git","url":"git+https://github.com/arc2898/watchdog.git"},"description":"Watch files/dirs, trigger actions. Like entr but with config files and queuing.","maintainers":[{"name":"arc2898","email":"rc002894@gmail.com"}],"readme":"# WatchDog\n\n> Watch files/dirs, trigger actions. Like `entr` but with config files and queuing.\n\n## Install\n\n```bash\nnpm install -g @arc2898/watchdog\n```\n\n## Usage\n\n```bash\n# Watch a directory and run a command on changes\nwatchdog ./src --command \"npm run build\"\n\n# Watch specific file types\nwatchdog ./src --pattern \"*.ts\" --command \"npm run build\"\n\n# Run without queueing (parallel)\nwatchdog ./src --command \"npm test\" --no-queue\n\n# Use {file} placeholder for the changed path\nwatchdog ./src --command \"eslint {file}\"\n```\n\n## Options\n\n- `-c, --command <cmd>` — Command to run (required)\n- `-p, --pattern <glob>` — File pattern (default: `**/*`)\n- `-d, --delay <ms>` — Debounce delay (default: 500ms)\n- `-q, --queue` — Queue commands instead of parallel (default: true)\n- `-v, --verbose` — Verbose output (default: true)\n\n## Config File\n\nCreate `watchdog.config.json`:\n\n```json\n{\n  \"watch\": \"./src\",\n  \"pattern\": \"*.ts\",\n  \"command\": \"npm run build\",\n  \"delay\": 300,\n  \"queue\": true\n}\n```\n\nThen run: `watchdog --config watchdog.config.json`\n\n## License\n\nMIT","readmeFilename":"README.md"}