{"versions":{"1.4.6":{"name":"@vscode/native-watchdog","version":"1.4.6","description":"A native module that kills the current process if the event loop is unresponsive","main":"index.js","typings":"index.d.ts","scripts":{"test":"node test/test.js","install":"node-gyp rebuild"},"repository":{"type":"git","url":"git+https://github.com/Microsoft/node-native-watchdog.git"},"author":{"name":"Microsoft Corporation"},"license":"MIT","bugs":{"url":"https://github.com/Microsoft/node-native-watchdog/issues"},"homepage":"https://github.com/Microsoft/node-native-watchdog#readme","gypfile":true,"_id":"@vscode/native-watchdog@1.4.6","_integrity":"sha512-C2hsQFVYF2hBv7sa7OztRBimrMsEofGNh/lYs7MIPpKdhyJpYSpDb5iu/bilgLqSO61PLBCJ5xw6iFI21LI+9Q==","_resolved":"M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App2\\temp\\d0319fe9-9862-4abc-bdce-bdabb92f01c0\\vscode-native-watchdog-1.4.6.tgz","_from":"file:M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App2\\temp\\d0319fe9-9862-4abc-bdce-bdabb92f01c0\\vscode-native-watchdog-1.4.6.tgz","tag":"latest","_nodeVersion":"18.5.0","dist":{"integrity":"sha512-C2hsQFVYF2hBv7sa7OztRBimrMsEofGNh/lYs7MIPpKdhyJpYSpDb5iu/bilgLqSO61PLBCJ5xw6iFI21LI+9Q==","shasum":"2d810525953669de7148e81fdae2d4fb8d1b9474","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@vscode/native-watchdog/-/native-watchdog-1.4.6.tgz","fileCount":9,"unpackedSize":15320,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCUWQt1hwXmSBqOVXgwMTCEMV4Fy9F0cEHdTqKuIBHhAwIhALGr7vLHaGkuuHziPJueZg0jd81R+n3WvO4UJK3WIZ1P"}],"size":5353},"_npmUser":{"name":"anonymous","email":"npmjs@microsoft.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"vscode-bot-npm@microsoft.com"},{"name":"anonymous","email":"npmjs@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/native-watchdog_1.4.6_1768417221065_0.15061330955776442"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-14T19:00:21.187Z","publish_time":1768417221187,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"1.4.6"},"name":"@vscode/native-watchdog","time":{"created":"2026-01-14T19:00:37.782Z","modified":"2026-01-14T19:00:38.603Z","1.4.6":"2026-01-14T19:00:21.187Z"},"readme":"# Watchdog node module\nKills the current process when another process is no longer running. This helps when the JavaScript event loop might be busy and never recovering e.g. an accidental while true loop.\n\nThis is implemented by launching a separate thread from C++ which periodically checks if the given process is still running. Typically, one would watch the parent process id. The watched process is checked every 1s and if it is no longer running, the current process will exit after 6 seconds with the exit code 87.\n\n## Installing\n\n```sh\nnpm install native-watchdog\n```\n\n## Using\n\n```javascript\nvar watchdog = require('native-watchdog');\n\nwatchdog.start(pid);\n```\n\n## Developing\n * `npm install -g node-gyp`\n * `node-gyp configure`\n * `node-gyp build` (for debugging use `node-gyp build --debug`)\n * `npm test` (for debugging change `index.js` to load the node module from the `Debug` folder and press `F5`)\n\n## Contributing\n\nThis project welcomes contributions and suggestions.  Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\n## License\n[MIT](https://github.com/Microsoft/node-native-watchdog/blob/master/LICENSE)","users":{}}