@inst/vscode-bin-darwin
Version:
BINARY ONLY - VSCode binary deployment for macOS
65 lines (64 loc) • 5.22 kB
JSON
{
"_args": [
[
{
"raw": "native-watchdog@https://registry.npmjs.org/native-watchdog/-/native-watchdog-0.3.0.tgz",
"scope": null,
"escapedName": "native-watchdog",
"name": "native-watchdog",
"rawSpec": "https://registry.npmjs.org/native-watchdog/-/native-watchdog-0.3.0.tgz",
"spec": "https://registry.npmjs.org/native-watchdog/-/native-watchdog-0.3.0.tgz",
"type": "remote"
},
"/Users/code/tfs/agent3/_work/2/s"
]
],
"_from": "native-watchdog@0.3.0",
"_id": "native-watchdog@0.3.0",
"_inCache": true,
"_location": "/native-watchdog",
"_phantomChildren": {},
"_requested": {
"raw": "native-watchdog@https://registry.npmjs.org/native-watchdog/-/native-watchdog-0.3.0.tgz",
"scope": null,
"escapedName": "native-watchdog",
"name": "native-watchdog",
"rawSpec": "https://registry.npmjs.org/native-watchdog/-/native-watchdog-0.3.0.tgz",
"spec": "https://registry.npmjs.org/native-watchdog/-/native-watchdog-0.3.0.tgz",
"type": "remote"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/native-watchdog/-/native-watchdog-0.3.0.tgz",
"_shasum": "c7d952ca05e9877f1ff7a3ff80991610b6104bbb",
"_shrinkwrap": null,
"_spec": "native-watchdog@https://registry.npmjs.org/native-watchdog/-/native-watchdog-0.3.0.tgz",
"_where": "/Users/code/tfs/agent3/_work/2/s",
"author": {
"name": "Microsoft Corporation"
},
"bugs": {
"url": "https://github.com/Microsoft/node-native-watchdog/issues"
},
"dependencies": {},
"description": "A native module that kills the current process if the event loop is unresponsive",
"devDependencies": {},
"gypfile": true,
"homepage": "https://github.com/Microsoft/node-native-watchdog#readme",
"license": "MIT",
"main": "index.js",
"name": "native-watchdog",
"optionalDependencies": {},
"readme": "\n\n\n\n\n\n# Watchdog node module\nKills the current process when the JavaScript event loop is busy for more than a configurable amount of time. e.g. an accidental while true loop.\n\nThis is implemented by launching a separate thread from C++ which periodically checks if an interval timer installed in the JavaScript event loop is fired.\n\n> Note: The node module does not distinguish a never-completing operation from a long running operation that will eventually complete. If the event loop appears to be stuck and does not fire timers for a configurable period of time, the node module will terminate the process.\n\n## Installing\n\n```sh\nnpm install native-watchdog\n```\n\n## Using\n\n```javascript\nvar watchdog = require('native-watchdog');\n\n// Configures the module to kill the current process if the event loop\n// is unresponsive for more than 5s.\nwatchdog.start(5000);\n```\n\nThe module will print to `stderr` the JavaScript call stack at the time it detected the JavaScript event loop to be unresponsive and will exit the process with code 87 (unused by node.js):\n```\nThe module native-watchdog has detected that the event loop is unresponsive.\nHere is the JavaScript stack trace:\n======================================native-watchdog======================================\nbad (/Users/alex/src/node-native-watchdog/test/test.js:16:13)\ngood (/Users/alex/src/node-native-watchdog/test/test.js:21:5)\nTimeout._onTimeout (/Users/alex/src/node-native-watchdog/test/test.js:24:5)\nontimeout (timers.js:386:14)\ntryOnTimeout (timers.js:250:5)\nTimer.listOnTimeout (timers.js:214:5)\n======================================native-watchdog======================================\nThe module native-watchdog will now terminate the process with exit code 87.\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)\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/Microsoft/node-native-watchdog.git"
},
"scripts": {
"install": "node-gyp rebuild",
"test": "node test/test.js"
},
"version": "0.3.0"
}