{"name":"@nearform/doctor","version":"4.1.1","keywords":[],"license":"GPL-3.0-or-later","_id":"@nearform/doctor@4.1.1","maintainers":[{"name":"admataz","email":"adam@admataz.com"},{"name":"alan.slater","email":"alan.slater@nearform.com"},{"name":"cuginoale","email":"alessio.carnevale@gmail.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"goto-bus-stop","email":"renee@kooi.me"},{"name":"iamsw","email":"sjwilson89@gmail.com"},{"name":"jasnell","email":"jasnell@gmail.com"},{"name":"kamil-mech","email":"kamil.mech@nearform.com"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"mattrobinson","email":"matt.robinson@nearform.com"}],"homepage":"https://github.com/nearform/node-clinic-doctor#readme","bugs":{"url":"https://github.com/nearform/node-clinic-doctor/issues"},"dist":{"shasum":"fb06e5e423b637199cdf8dcf0066d2a53e14574b","tarball":"http://registry-npm.ywwl.com/@nearform/doctor/download/@nearform/doctor-4.1.1.tgz","fileCount":89,"integrity":"sha512-3QNc2/e9U9Ion5iziodQEzmbiaUIroNGpuYI6AQQmf2R/Cmh6Msosf0xtG7em6ILT+d38vJmfoYTT/XDshTpiQ==","signatures":[{"sig":"MEUCIEXk1pahrCneEuq+rVrnLl8wQnHAy1oak9XDTp1ni0EvAiEAg5rlgR1G7fU32k1LHVScBha4fU3MwrfcsbArLzVBQgw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":296396,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZ24ACRA9TVsSAnZWagAAYCAP/AzFS4StAY+usjApnXeJ\nUVHPKWA/bQ6XfyouF0XHsuX8z7KuhetqkbUY0XgqCtRWKi0HtvrrUvXb/Wrr\nwLZTGboBzcDFXEbSl2tqw+c7s/ZcLjKCGT9RDpjm/Kjfwl5qG0qUeeEZjlLn\nJQddZO/MRfc1DxDQKg/NZaViyPvGORigRjqmIIPZROQZEcgfqeJlHGFz1azC\nDxybg7RTkpD/umkHBqbKdQGdMjMtDUxQjxM1btooXeqiONuh58/+GYdN0p8d\n5j4tJvZ4oJQWYOGhv02EybhoydMZR7uhZvMyL36wzQz6rb1ZAkQ88cj+6P/R\nwO1Ev6yuSvoA0BEhF5dm2ujqtww6zwy/xgl30GCQ1he9rgF624W3k3Pfn8sq\n0yUKXRzH1EiET+VZOQ8Jg8nXU3CbLRZX5HK9cRZizB9++vBbHvm7fBfzdak1\nY6akdSLISJ6UaRcnvzvL7P/f6TYRwM+SMjmPhXEsQaVeG5ANLSLytLh/bD0s\nL5vg8K1Osj/ouN0m6rTtql7MVOqnMHGcn21h9vOv07w2RO2wMZZkYGY2fbod\nqrwmDvgBWdiGcLvbxWkgWiZrH/tB2/WSKIbvs/dTvmmM7wVek1Db41YBC9tS\nfth4eoOBYOz7/YVPGA27TFjVsbvWU9sMwSW7bVZ4mjYFULr+0hHlA+X7IS87\nJoic\r\n=dCxt\r\n-----END PGP SIGNATURE-----\r\n","size":122109,"noattachment":false,"key":"/@nearform/doctor/-/@nearform/doctor-4.1.1.tgz"},"engines":{"node":"^8.10.0 || ^9.4.0 || >=10.0.0"},"gitHead":"5068e1f3d30c4dd8414bd6e03a525e6b2b65988b","scripts":{"lint":"standard --fix | snazzy","test":"standard | snazzy && tap -j1 --timeout=50 --no-cov test/*.test.js","ci-cov":"tap -j1 --timeout=60 --100 test/*.test.js","ci-lint":"standard | snazzy","ci-test":"tap -j1 --timeout=50 test/*.test.js","visualize-all":"node debug/visualize-all.js","visualize-watch":"node debug/visualize-watch.js"},"_npmUser":{"name":"goto-bus-stop","email":"renee@kooi.me"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/nearform/node-clinic-doctor.git","type":"git"},"_npmVersion":"6.14.2","description":"Programmable interface to Clinic.js Doctor","directories":{},"_nodeVersion":"13.10.1","dependencies":{"pump":"^3.0.0","async":"^3.0.1","debug":"^4.0.0","ttest":"^2.0.0","mkdirp":"^1.0.0","semver":"^7.0.0","d3-axis":"^1.0.8","pumpify":"^2.0.0","summary":"^1.0.0","d3-array":"^2.0.0","d3-scale":"^3.0.0","d3-shape":"^1.2.0","endpoint":"^0.4.5","showdown":"^1.7.6","d3-selection":"^1.1.0","distributions":"^2.0.0","minify-stream":"^1.2.0","on-net-listen":"^1.0.0","d3-time-format":"^2.1.0","stream-template":"0.0.10","protocol-buffers":"^4.0.4","node-trace-log-join":"^1.0.0","@tensorflow/tfjs-core":"^1.2.1","hidden-markov-model-tf":"^3.0.0","@nearform/clinic-common":"^2.0.0","streaming-json-stringify":"^3.1.0","@nearform/trace-events-parser":"^1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^14.10.3","rimraf":"^3.0.0","snazzy":"^8.0.0","cheerio":"^1.0.0-rc.2","chokidar":"^3.0.0","standard":"^14.3.1","xorshift":"^1.1.1","startpoint":"^0.3.2","lodash.debounce":"^4.0.8"},"_npmOperationalInternal":{"tmp":"tmp/doctor_4.1.1_1583836671533_0.34971482201668835","host":"s3://npm-registry-packages"},"readme":"# Clinic.js Doctor\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/nearform/node-clinic-doctor.svg)](https://greenkeeper.io/)\n[![npm version][npm-version]][npm-url] [![Stability Stable][stability-stable]][stability-docs] [![Github Actions build status][actions-status]][actions-url]\n[![Downloads][npm-downloads]][npm-url] [![Code style][lint-standard]][lint-standard-url]\n\nProgrammable interface to [Clinic.js][clinic-url] Doctor. Learn more about Clinic.js: https://clinicjs.org/\n\n![Screenshot](screenshot.png)\n\n## Supported node versions\n\n* Node.js 10.0.0 and above\n* Node.js 9.4.0 and above\n* Node.js 8.10.0 and above\n\nNode.js 8.9.4 also works, however you have to listen to `SIGINT` and shutdown\nthe process nicely.\n\n## Example\n\n```js\nconst ClinicDoctor = require('@nearform/doctor')\nconst doctor = new ClinicDoctor()\n\ndoctor.collect(['node', './path-to-script.js'], function (err, filepath) {\n  if (err) throw err\n\n  doctor.visualize(filepath, filepath + '.html', function (err) {\n    if (err) throw err\n  });\n})\n```\n\nYou can find examples in\n[node-clinic-doctor-examples](https://github.com/clinicjs/node-clinic-doctor-examples)\n\n## Documentation\n\n```js\nconst ClinicDoctor = require('@nearform/doctor')\nconst doctor = new ClinicDoctor()\n```\n\n### new ClinicDoctor([settings])\n\n* settings [`<Object>`][]\n  * sampleInterval [`<Number>`][] Time between each sample in milliseconds.\n    **Default**: 10\n  * detectPort [`<boolean>`][] **Default**: false\n  * dest [`<String>`][] The folder where the collected data is stored. **Default**: '.'\n  * debug [`<boolean>`][] If set to true, the generated html will not be minified.\n    **Default**: false\n  * collectDelay [`<Number>`][] **Default**: 0\n\n#### `doctor.collect(args, callback)`\n\nStarts a process by using:\n\n```js\nconst { spawn } = require('child_process')\nspawn(args[0], ['-r', 'sampler.js'].concat(args.slice(1)))\n```\n\nThe injected sampler will produce a file in the current working directory, with\nthe process PID in its filename. The filepath relative to the current working\ndirectory will be the value in the callback.\n\nstdout, stderr, and stdin will be relayed to the calling process. As will the\n`SIGINT` event.\n\n#### `doctor.visualize(dataFilename, outputFilename, callback)`\n\nWill consume the datafile specified by `dataFilename`, this datafile will be\nproduced by the sampler using `doctor.collect`.\n\n`doctor.visualize` will then output a standalone HTML file to `outputFilename`.\nWhen completed the `callback` will be called with no extra arguments, except a\npossible error.\n\n## License\n[MIT](LICENSE)\n\n[stability-stable]: https://img.shields.io/badge/stability-stable-green.svg?style=flat-square\n[stability-docs]: https://nodejs.org/api/documentation.html#documentation_stability_index\n[npm-version]: https://img.shields.io/npm/v/@nearform/doctor.svg?style=flat-square\n[npm-url]: https://www.npmjs.org/@nearform/doctor\n[npm-downloads]: http://img.shields.io/npm/dm/@nearform/doctor.svg?style=flat-square\n[lint-standard]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\n[lint-standard-url]: https://github.com/feross/standard\n[clinic-url]: https://github.com/clinicjs/node-clinic\n[`<Object>`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n[`<boolean>`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type\n[`<Number>`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type\n[`<String>`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n[actions-status]: https://github.com/clinicjs/node-clinic-doctor/workflows/CI/badge.svg\n[actions-url]: https://github.com/clinicjs/node-clinic-doctor/actions\n","publish_time":1583836671807,"_cnpm_publish_time":1583836671807,"dist-tags":{"latest":"8.1.0","next":"4.0.0-beta.0"}}