{"name":"@nearform/flame","version":"3.3.0","author":"","license":"GPL-3.0-or-later","_id":"@nearform/flame@3.3.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":"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":"e62360360af5645e42bc492007be2f412475cbb6","tarball":"http://registry-npm.ywwl.com/@nearform/flame/download/@nearform/flame-3.3.0.tgz","fileCount":158,"integrity":"sha512-boDAvoVMqd+omZ62ppzpKy7fa3l3DBoYgxv1nZrLZQkVe/74LNejqYG5abjimoAmH5Bxv31zjjZ3fcBGDkdEVw==","signatures":[{"sig":"MEYCIQD893JFn+4TVaknTlIETraM4byRk0kORkpiE9lWdWp/BAIhALV6ZsMmo7BGq6NqW2fZhFuMAiwwlBsYt2pEWxVzx8O3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":385670,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9YChCRA9TVsSAnZWagAAa5YP/2SKgYDXKU9f+lxEXXh8\nI1hvLEgNrIt4aR3RZjIIWogiul62u6WjLY6ZY6r3SVZiU6MFGcsOgxQ6Ln3Q\ns3LBzLLL5xXnJ1EolvgfLPCjOWAL/IuTkzJFIa9bgKF8p0ccobdY50yi+Orv\n6gbdekxAxi9acJQI9j3PplWGKEChZ3BEka9qZQI19+UnVxxf/Rs9lc3tB0Ew\nXzipb94QzMh1QSm18fpJyozv+aGL0W23asy5GbYfA2UNERxCN4HmnzWP5b9L\nC1IaL/R2HTbZi28xmAJUOAOoaOngPyL/4gmBqtVbm4TFB29ym9vIjMydyjmA\nsDg24GwyOvkYLpo6wSflvVTuQ5v2vZChVVMvaao5IXpclM1MQmqyCLO5neHH\n7bFrzE12Pcow4eXv/hc7o2BWy7afb8+KKIhaZRdioyyDBJGn4+UV54PT/dBW\n8Doi+4+BOjLwI7nJGzmTV3BiDDIUu74LecVAn3dwpc587ZUzv6S4N4SY6eJ5\nPk/nb9t32z1d5CxOmNxHi+vzm50D45f3iPShArwzZlC6TzNyoSyhyJ1dpBN9\n4ZpQNnuD9cI3VZbRs/ioNXWdqLB2HKGXheU2EfVESjuBvltOogNgHQwn1A/Z\n2C1k0CHVIqs1vNnVUNa4miPVlCaNm6pqb3L9z6KnoCtW3vUGe3wDClv9xmRe\noOiZ\r\n=NFwz\r\n-----END PGP SIGNATURE-----\r\n","size":164757,"noattachment":false,"key":"/@nearform/flame/-/@nearform/flame-3.3.0.tgz"},"main":"index.js","gitHead":"68763544070bf3f53e097c70cec0e9b2b2371cf6","scripts":{"lint":"standard --fix | snazzy","test":"npm run lint && tap --100 test/*.test.js","ci-lint":"npm run lint","ci-test-cov":"tap --100 test/*.test.js","visualize-all":"node debug/visualize-all.js","ci-test-no-cov":"tap test/*.test.js","visualize-watch":"node debug/visualize-watch.js"},"_npmUser":{"name":"alan.slater","email":"alan.slater@nearform.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.4.1","description":"Programmable interface to clinic flame","directories":{},"_nodeVersion":"11.1.0","dependencies":{"0x":"^4.5.1","brfs":"^2.0.1","pump":"^3.0.0","d3-fg":"^6.11.1","postcss":"^7.0.0","d3-array":"^2.0.2","deepmerge":"^2.1.1","browserify":"^16.2.2","d3-selection":"^1.3.2","loose-envify":"^1.4.0","minify-stream":"^1.2.0","flame-gradient":"^1.0.0","postcss-import":"^12.0.0","querystringify":"^2.1.0","lodash.debounce":"^4.0.8","stream-template":"0.0.10","copy-to-clipboard":"^3.0.8","browserify-inline-svg":"^1.0.2","@nearform/clinic-common":"^1.1.0"},"_hasShrinkwrap":false,"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_3.3.0_1542815904333_0.051361053743196994","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":1542815904511,"_cnpm_publish_time":1542815904511,"dist-tags":{"latest":"9.1.0","next":"4.0.0-beta.0"}}