{"name":"@clinic/doctor","description":"Programmable interface to Clinic.js Doctor","repository":{"type":"git","url":"git+https://github.com/clinicjs/node-clinic-doctor.git"},"version":"9.2.0","scripts":{"visualize-watch":"node debug/visualize-watch.js","visualize-all":"node debug/visualize-all.js","test":"standard | snazzy && tap --no-cov test/*.test.js","ci-lint":"standard | snazzy","ci-test":"tap test/*.test.js","ci-cov":"tap test/*.test.js","lint":"standard --fix | snazzy"},"dependencies":{"@clinic/clinic-common":"^7.0.0","@clinic/node-trace-log-join":"^2.0.0","@clinic/trace-events-parser":"^2.0.0","@tensorflow/tfjs-core":"^1.2.1","async":"^3.0.1","clipboard-copy":"^4.0.1","d3-array":"^2.0.0","d3-axis":"^1.0.8","d3-scale":"^3.0.0","d3-selection":"^1.1.0","d3-shape":"^1.2.0","d3-time-format":"^2.1.0","debug":"^4.3.1","distributions":"^2.0.0","endpoint":"^0.4.5","hidden-markov-model-tf":"^3.0.0","minify-stream":"^2.0.1","mkdirp":"^1.0.0","on-net-listen":"^1.0.0","protocol-buffers":"^4.0.4","pump":"^3.0.0","pumpify":"^2.0.0","semver":"^7.0.0","showdown":"^1.7.6","stream-template":"0.0.10","streaming-json-stringify":"^3.1.0","summary":"^2.1.0","ttest":"^3.0.0"},"devDependencies":{"cheerio":"^1.0.0-rc.2","chokidar":"^3.4.3","lodash.debounce":"^4.0.8","rimraf":"^3.0.0","snazzy":"^9.0.0","standard":"^16.0.3","startpoint":"^0.3.2","tap":"^15.0.10","xorshift":"^1.1.1"},"engines":{"node":">=12.13.0"},"keywords":[],"license":"MIT","gitHead":"9fffeb598f281f9c28310194d5103170c6683df0","bugs":{"url":"https://github.com/clinicjs/node-clinic-doctor/issues"},"homepage":"https://github.com/clinicjs/node-clinic-doctor#readme","_id":"@clinic/doctor@9.2.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-sXHjrjqf7UBPcYRM0Z5FpjUiLKCmoUPnJ1TgnQU3Otw8t2yT8uUez915/u21CVLwxa8uWNo9jMKWexEjPYKH5Q==","shasum":"5587d03f862b08e9ea81c088021208d2b84e23c0","tarball":"http://registry-npm.ywwl.com/@clinic/doctor/download/@clinic/doctor-9.2.0.tgz","fileCount":92,"unpackedSize":308274,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5XlLCRA9TVsSAnZWagAATR4P/RgsRHZyBkRl45OwhCtb\nAn1gNCpnhSu2jYFXVweoE4n0CSLGzUjmGirDIchL/ndu0qmU0i7iNVWjaG9o\nZZMpHu7vICLtNNWwoOKCyG0DfADoZg8OllUQlaeYY6qpYEHet8C4G6wAhdIQ\nz8Po0QQgkmJAtZgmiu/p3TKg18e+lFeA0m1BzXCj7gnFyOGZbTo2lT9fPH81\nyU00WD1TrJWwQPCqS1fQMEHS9JlZmS0ook+hID35DGcdsMWzAZMeIlkHdz4U\nC/sS0dXTmwmrNVL9G+Xth/JPwMHOBJ4DrY7J/LwVBEjG8PUvFMPjWD73VgUT\nHPHDffGHWHJO4eFbPIZdjVCF8abngBqufODIbfNLv8rK2Vlyn9fL1RqZQnoo\nSGwB9Ybbe0fqOwsIGr/2ioqTMCzIgLQIKLDJ4+KOP/FHc2NjzBYHTy+c/FSZ\nT4ejUz/64hI2y0nL5xQFsfIikRM1Si8FXNx3ZNAO9qbJJLoPp74Nd7ZljMS6\nDnVSZRk98q7RQTrHlIqlyM7bxaOFuagYK4WOS0kdYE8R7t2u77XLkWOe2B+K\nqJK7lANPkRm40d4xZl4CQemYuO27zCYZDBhEl8D4TVC980wO+Gpf7jgNqQZQ\nhlcVS0n4L1gJscC5iZT/2oGX6ckn0pcSobfGnpZMg6lgzck0RPnbObEfYO4M\n5X+g\r\n=iR+Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpCtcTXTSLvt4kiSl1JvhuShq8lEraQcG0/2aLW/SO1AIgOFKz4eD/z6vgLkfYZ6jIsU6uyuC8ehhq26qoFkLJnjs="}],"size":118636,"noattachment":false,"key":"/@clinic/doctor/-/@clinic/doctor-9.2.0.tgz"},"_npmUser":{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},"directories":{},"maintainers":[{"name":"jasnell","email":"jasnell@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/doctor_9.2.0_1642428746927_0.9863553679376693"},"_hasShrinkwrap":false,"readme":"# Clinic.js Doctor\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/clinic/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## Issues\n\nTo open an issue, please use the [main repository](https://github.com/clinicjs/node-clinic) with the `doctor` label.\n\n## Installation\n\n```console\nnpm i -S @clinic/doctor\n```\n\n## Supported node versions\n\n* Node.js 16 and above\n\n## Example\n\n```js\nconst ClinicDoctor = require('@clinic/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('@clinic/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/@clinic/doctor.svg?style=flat-square\n[npm-url]: https://www.npmjs.org/@clinic/doctor\n[npm-downloads]: http://img.shields.io/npm/dm/@clinic/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":1642428747093,"_cnpm_publish_time":1642428747093,"dist-tags":{"latest":"11.0.0"}}