{"name":"@nearform/flame","version":"2.1.1","author":"","license":"GPL-3.0-or-later","_id":"@nearform/flame@2.1.1","maintainers":[{"name":"alan.slater","email":"alan.slater@nearform.com"},{"name":"andreasmadsen","email":"amwebdk@gmail.com"},{"name":"bridgear","email":"ruben@bridgewater.de"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.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"}],"homepage":"https://github.com/nearform/node-clinic-flame#readme","bugs":{"url":"https://github.com/nearform/node-clinic-flame/issues"},"dist":{"shasum":"cfd56feb69365dabf610d35d95b0ab9e0302aa4e","tarball":"http://registry-npm.ywwl.com/@nearform/flame/download/@nearform/flame-2.1.1.tgz","fileCount":16,"integrity":"sha512-/mF+1L/e+vTX/KXf5/uyem59fZhE2iPz3Yu1NThgcJmzC/ufNGKqewvXhkgqAfQi1rehyIM3iCMRVYe1srZl4g==","signatures":[{"sig":"MEYCIQD7ew+TUCcGWpppAzxza7ErvjOpK8jc73sMVAvwKhQcsAIhALC3ByHwv93tTcf8SxoDu4ier1i58O4EQ1k6muarA+VE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":136925,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJboRozCRA9TVsSAnZWagAAxLQP/i69N1mQyH1P822lXuqB\nGyg2dcqW2vvyhyW6o3fwrIC26N/b92vZqsFbbJjw23Gy/fyU7LcNq3h1at5c\nkcGuutQucdYN7Gx5WIxwIdYbIggd50f5zJ2Omorg+3Msx7UAMB+KLV29kGer\n+04d7JUNinYfBpsT8rdGfhSr0ESmmgRzIGjThGp05pGEkF2YXWZqd8eVDlWY\ntn1vKVvCEryJ4O4oBite+xApsKJVfsXAv2Hl16PwLtKc1QRogVAM5wbvsCcz\nsKczUrK+t8hgRHKThUnHiEqsPZNZXh9WlNYca6LTQgdPNfcOir+8CQjXJHBy\n2ilNkLYwN+eOxqTOhbUho89/GGytK5mrmn1Qx54erg4MAz8VEHGWedGfpTn/\nT8FWSBSDS87GDOrZrU3Iil4mftoD39V4/utgOaSGr4W3sGm2zorciY5Udfd3\nnJXddwxJD5D0Dimat2zz/6c5CIKaI7XSFRS922TC6tBKGZEegGM+U22+MwOz\ntb3uzd7fx6KXr6RRSsrfnAVN6dzEG89dNjKGn0XHnji47r7ngkbPcBgtAOFd\nMqN3c2s54FKXb++Turz6k8vD1H6IziXafekuvBWDRBH8RCx2o7VQZqV8ZpJu\nDcmzGz6tHyIfk/rGJmMQG3803M4T+IfHxN0zNpX4RzHyr25q4xaIZZllodRu\nEqd2\r\n=F1qT\r\n-----END PGP SIGNATURE-----\r\n","size":92891,"noattachment":false,"key":"/@nearform/flame/-/@nearform/flame-2.1.1.tgz"},"main":"index.js","gitHead":"7454ece2a9248ebef6bdd717ef3149439b9c46b9","scripts":{"lint":"standard --fix | snazzy","test":"npm run lint && tap --100 test/*.test.js","ci-lint":"npm run lint","ci-test":"tap --100 test/*.test.js"},"_npmUser":{"name":"bridgear","email":"ruben@bridgewater.de"},"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.4.1","description":"Programmable interface to clinic flame","directories":{},"_nodeVersion":"10.10.0","dependencies":{"0x":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^12.0.0","rimraf":"^2.6.2","snazzy":"^8.0.0","standard":"^12.0.1"},"_npmOperationalInternal":{"tmp":"tmp/flame_2.1.1_1537284659014_0.6342926267277755","host":"s3://npm-registry-packages"},"readme":"# Clinic.js Flame\n\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] Flame. Learn more about Clinic.js: https://clinicjs.org/\n\n![Screenshot](screenshot.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[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/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/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[`<String>`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n[actions-status]: https://github.com/clinicjs/node-clinic-flame/workflows/CI/badge.svg\n[actions-url]: https://github.com/clinicjs/node-clinic-flame/actions\n","publish_time":1537284659161,"_cnpm_publish_time":1537284659161,"dist-tags":{"latest":"9.1.0","next":"4.0.0-beta.0"}}