{"name":"@nearform/flame","version":"2.1.0","author":"","license":"GPL-3.0-or-later","_id":"@nearform/flame@2.1.0","maintainers":[{"name":"addaleax","email":"anna@addaleax.net"},{"name":"alan.slater","email":"alan.slater@nearform.com"},{"name":"andreasmadsen","email":"amwebdk@gmail.com"},{"name":"apokalyptra","email":"apokalyptra@gmail.com"},{"name":"bridgear","email":"ruben@bridgewater.de"},{"name":"cianfoley_nearform","email":"cian.foley@nearform.com"},{"name":"conoro","email":"conor@conoroneill.com"},{"name":"damianberesford","email":"dberesford@gmail.com"},{"name":"dancork-nf","email":"dan.cork@nearform.com"},{"name":"davidefiorello","email":"davide@codeflyer.com"},{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"filippo.desantis","email":"filippo.desantis@gmail.com"},{"name":"hueniverse","email":"eran@hammer.io"},{"name":"ivanjov","email":"ivanjov96@gmail.com"},{"name":"jasnell","email":"jasnell@gmail.com"},{"name":"jasonmelo","email":"jason.melo@gmail.com"},{"name":"jh3y","email":"jh3y@shiftbear.com"},{"name":"jimmymintzer","email":"jimmymintzer@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"},{"name":"mcdonnelldean","email":"mcdonnelldean@outlook.com"},{"name":"mihaidma","email":"mihaizn@gmail.com"},{"name":"mrister","email":"mihovil.rister@gmail.com"},{"name":"nearformer","email":"david.clements@nearform.com"},{"name":"ofrobots","email":"ofrobots@google.com"},{"name":"robbdempsey","email":"robb.dempsey@gmail.com"},{"name":"shaunjbaker","email":"shaun@schb.co.uk"},{"name":"shogun_panda","email":"shogun@cowtech.it"},{"name":"temsa","email":"florian.traverse@gmail.com"},{"name":"thekemkid","email":"glenkeane.94@gmail.com"},{"name":"wprl","email":"william@Kun.io"},{"name":"yoshuawuyts","email":"yoshuawuyts@gmail.com"}],"homepage":"https://github.com/nearform/node-clinic-flame#readme","bugs":{"url":"https://github.com/nearform/node-clinic-flame/issues"},"dist":{"shasum":"a6ab52fb919be45438c93a77be43a91ff053fd92","tarball":"http://registry-npm.ywwl.com/@nearform/flame/download/@nearform/flame-2.1.0.tgz","fileCount":7,"integrity":"sha512-8UDXDQtj/UzOy+xgijzc/z3PHvHbnvg43a0m6p+AQMkaAYdSCDep3ZDfNIHrMtsFfVQhdp/PLSm0XENtuJRcfA==","signatures":[{"sig":"MEUCICeBmsL8vd2hWUakYVddFFWf/f6jp4GOtNvmU9cYA7nIAiEAk5gME2BgKwEVykc+cHMQVLspagA81xnX5z+Ob059IrM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43776,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbV0ZzCRA9TVsSAnZWagAAy6MP/0/ErB5bk4m9ZrZIXSMn\nEi1O5y2KL6D45mHTTmzPCxDNpEMtSGQtlrfLqKpt24op1GisyRKF/Fl3wm0G\naku4U6Jh8MwZzKQWsjOwN7tU4pBdUiBnF1csgshazSYpiX9TcDQzCsWxb5B3\nbKANd+t48RBrW46hrMzUwDyHGbJqbXtsDWV4vpbEz6a5cwtnxRk4cndjX63J\n+9C3Ax1T6XKC/BJGLh9gFWYzCUaHP9LTUNPjXcMRQTK571VPxW3TmGBBNXJE\n72kJoBZneBVAGnbicNLggx40PVGDRAzgLFhSMDyYTlwca2PNihbmL0ELJe6w\nQP0KfVVqG3GdMm7stGMozpg1Mv/dx9X1E4ldh4n3g0OJHiyoeyk9Um4G8Ay4\nTALmH11dD5PTW+dNthQmBhx1XPAX5YY/OzWUBN8L99rvJ5so9Txt5LjKUpeI\n614E83Qmjm/s7oWFNj7PTYqbB2fHxvE8WO00ZSio8opTTgX+7d3PfnQrqhBD\n47A7HOJn5GXDGiaTtf3g47fOf+VemgkCU2Y84WGFGQVxiASDZnpBqIlOLDAR\n8/HqtSYEuv4Q3TPsJRxGdxZAlGgTBBNFHrsXEtWJ/HVTpMbos7hXUpRGruC7\naNZPAnsCaV0sRW/0oIOiJuGrNYAznCZpZl3RqXvvFzrM9zd+T8Cnw9L0hA62\nbXH0\r\n=91Rg\r\n-----END PGP SIGNATURE-----\r\n","size":15866,"noattachment":false,"key":"/@nearform/flame/-/@nearform/flame-2.1.0.tgz"},"main":"index.js","gitHead":"2f8c2c0aa09746a3ba5c430d0a2cc6b9ad47cfc1","scripts":{"test":"standard"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"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.1.0","description":"Programmable interface to clinic flame","directories":{},"_nodeVersion":"10.7.0","dependencies":{"0x":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"standard":"^11.0.1"},"_npmOperationalInternal":{"tmp":"tmp/flame_2.1.0_1532446323293_0.7533212782188758","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":1532446323357,"_cnpm_publish_time":1532446323357,"dist-tags":{"latest":"9.1.0","next":"4.0.0-beta.0"}}