{"name":"@nearform/flame","version":"4.0.0-beta.0","author":"","license":"GPL-3.0-or-later","_id":"@nearform/flame@4.0.0-beta.0","maintainers":[{"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-flame#readme","bugs":{"url":"https://github.com/nearform/node-clinic-flame/issues"},"dist":{"shasum":"5130cefbb09eb551e79e46370896bc7062bcb39d","tarball":"http://registry-npm.ywwl.com/@nearform/flame/download/@nearform/flame-4.0.0-beta.0.tgz","fileCount":164,"integrity":"sha512-PeMCxHcRG53sM174RX1ZXwgccfCReHoppC7QMN7MGl18he/RylcfUlUPMBl6qXH4vh1gIZVngtoOkZPft8bdMQ==","signatures":[{"sig":"MEQCIARK8bj5qmk9nxYQtVfoOPcpzk2S3M6M6MrKBV6+sAPoAiBxWKUxGgQO4mq2/d355DURw8wU3c+JwATpAlFhKY898g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":398666,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcXFJYCRA9TVsSAnZWagAAm2cP/jhJmrX1+1e4fSyx7nAs\nLbgY4q5933g0dJNmXxWBsjiAxIaJbULVPmuHbPdujlKgKw6s9AfwftIJaeSu\nKGThsXvg7/HaY3XiIWNg2Sdx1hcymURr72GN23/NHI3qBM4uV8CzknxjAcWK\nqF70EGpxEw5QjaF6VfSOkYPUD0LnXVUHRXr4XvjdeZ4Hhgg23WlH4lfTGgN6\n2XHZ8KcyDyMuRsXQS21F2C4p0fdpGR6YY4CjxaQ1EU0xPn3kJbKzHMqDkDss\n9/H5K3ka6CBJrCHjm8uazBtvWqKBOnTPWlSHtEVek516t7uNhA1+NNngAGUa\nHxBauPjS8dodWAITsuxTMtckrGy6djLMhwiwMfnBL1A9qPgGk8wY+A//GZ8G\nZVj0rvPl9/l0esF59jVZhVqoPNjuwgO3YxaX6UDMyfXA8C/tbL9ian3GmZEh\nEdiebv9LGnF3dMIp9Jt7MTs1WPEGVu3xUVrYclMRxJAwJdz+IHeIbMiNLiM2\nSeDOwzZYyR1C/yauMADSi5yVlneXN18xc9r8lkRgIYkCezO9q61zahiX3kXA\nk5wno4UPygHPV7Wi2CKdpQeJneMRLC9pyVactZ8UY8Gu11VVSBiyjmmD3ECZ\nksv5YsjuptuzpZBBEr8XrqYHOyoDZwLRD8r/fGGSABbgnpWEzmh5ibrTb8jn\n+p1Y\r\n=vgWi\r\n-----END PGP SIGNATURE-----\r\n","size":168407,"noattachment":false,"key":"/@nearform/flame/-/@nearform/flame-4.0.0-beta.0.tgz"},"main":"index.js","readme":"# node-clinic-flame\n\n[![npm version][npm-version]][npm-url] [![Stability Stable][stability-stable]][stability-docs] [![Azure Pipelines build status][azure-status]][azure-url]\n[![Downloads][npm-downloads]][npm-url] [![Code style][lint-standard]][lint-standard-url]\n\nProgrammable interface to [clinic][clinic-url] flame. Learn more about clinic: https://clinicjs.org/\n\n![banner](logo.png)\n\n## Supported node versions\n\n* Node.js 8 and above\n\n## Example\n\n```js\nconst ClinicFlame = require('@nearform/flame')\nconst flame = new ClinicFlame()\n\nflame.collect(['node', './path-to-script.js'], function (err, filepath) {\n  if (err) throw err\n\n  flame.visualize(filepath, filepath + '.html', function (err) {\n    if (err) throw err\n  })\n})\n```\n\n## Documentation\n\n```js\nconst ClinicFlame = require('@nearform/flame')\nconst flame = new ClinicFlame()\n```\n\n### new ClinicFlame([settings])\n\n* settings [`<Object>`][]\n  * detectPort [`<boolean>`][] **Default**: false\n  * debug [`<boolean>`][] If set to true, the generated html will not be minified.\n    **Default**: false\n  * dest [`<String>`][] The folder where the collected data is stored.\n    **Default**: '.'\n\n#### `flame.collect(args, callback)`\n\nStarts a process by using [0x](https://github.com/davidmarkclements/0x)\n\n0x will produce a file in the current working directory, with the process PID in\nits filename. The filepath relative to the current working directory will be the\nvalue in the callback.\n\n`stdout`, `stderr`, and `stdin` will be relayed to the calling process. As will\nthe `SIGINT` event.\n\n#### `flame.visualize(dataFilename, outputFilename, callback)`\n\nWill consume the datafile specified by `dataFilename`, this datafile will be\nproduced by the sampler using `flame.collect`.\n\n`flame.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[GPL 3.0](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/flame.svg?style=flat-square\n[npm-url]: https://www.npmjs.org/@nearform/flame\n[npm-downloads]: http://img.shields.io/npm/dm/@nearform/flame.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/nearform/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[`<String>`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n[azure-status]: https://dev.azure.com/node-clinic/node-clinic/_apis/build/status/nearform.node-clinic-doctor\n[azure-url]: https://dev.azure.com/node-clinic/node-clinic/_apis/build/status/nearform.node-clinic-doctor?branchName=master\n","engines":{"node":"^11.0.0 || ^10.0.0 || ^8.11.1"},"gitHead":"ba5d447ba84a1c25f5948503e42187c231676e09","scripts":{"lint":"standard --fix | snazzy","test":"npm run lint && tap --timeout=50 --100 test/*.test.js","ci-lint":"npm run lint","ci-test-cov":"tap --100 --timeout=50 test/*.test.js","visualize-all":"node debug/visualize-all.js","ci-test-no-cov":"tap --timeout=40 test/*.test.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-flame.git","type":"git"},"_npmVersion":"6.7.0","description":"Programmable interface to clinic flame","directories":{},"_nodeVersion":"11.9.0","dependencies":{"0x":"^4.7.2","pump":"^3.0.0","d3-fg":"^6.13.0","d3-array":"^2.0.2","deepmerge":"^2.1.1","d3-selection":"^1.3.2","flame-gradient":"^1.0.0","querystringify":"^2.1.0","lodash.debounce":"^4.0.8","copy-to-clipboard":"^3.0.8","browserify-inline-svg":"^1.0.2","@nearform/clinic-common":"^1.5.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tap":"^12.0.0","rimraf":"^2.6.2","snazzy":"^8.0.0","chokidar":"^2.0.4","standard":"^12.0.1"},"_npmOperationalInternal":{"tmp":"tmp/flame_4.0.0-beta.0_1549554264077_0.12557719661209865","host":"s3://npm-registry-packages"},"publish_time":1549554264216,"_cnpm_publish_time":1549554264216,"dist-tags":{"latest":"9.1.0","next":"4.0.0-beta.0"}}