{"name":"@nearform/flame","version":"9.1.0","author":"","license":"MIT","_id":"@nearform/flame@9.1.0","maintainers":[{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"alan.slater","email":"alan.slater@nearform.com"},{"name":"mattrobinson","email":"matt.robinson@nearform.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"iamsw","email":"sjwilson89@gmail.com"},{"name":"admataz","email":"adam@admataz.com"}],"homepage":"https://github.com/clinicjs/node-clinic-flame#readme","bugs":{"url":"https://github.com/clinicjs/node-clinic-flame/issues"},"tap":{"nyc-arg":["--exclude=test/*.js","--exclude=shared.js","--exclude=visualizer/d3.js","--exclude=visualizer/data-tree.js","--exclude=visualizer/no-data-node.js"]},"dist":{"shasum":"ed50bbf05e3def2a464cd40ffe9b17a9e09afa16","tarball":"http://registry-npm.ywwl.com/@nearform/flame/download/@nearform/flame-9.1.0.tgz","fileCount":171,"integrity":"sha512-rGC8tDiwkD+YaMGhJadbhbE+wT0omIrXwVKsCxqZJmNG2yDib7W36DVY6eHfa75Tyb0rqXkWl46gsgg/mr3HBQ==","signatures":[{"sig":"MEUCIQDj2jMSCYh1Zja2Y+ykeTJmU3URJZGM2a5XQkIP7xdyugIgUWyTWWNS7ePpRT0S4XTFIeyYpgnNC0/qkLbZIq0xcuM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":450241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2S8PCRA9TVsSAnZWagAAGG8P/1wF+kW3hEmLuUX2LWqZ\nx+8gtV/8P56KzG3HNmvIopivK8aYQfaDZrhHdzEzJuqcYXV0T7GxxEWsdmWF\neeIjsxcMEtpsbfex/u2L8iywG2PIk4KqGC0hgU/sBqQoy48t70RXopshtJg3\nzGVeuk1UqpNIyT4p3xT8VWoCqxGmrqdG9ACijkbYbzgfa8L+TrNi8/uWunHH\nkvBygMbwXQw+ss/BNFlLnQeugd1pi78X34+NNzaGSGnr8BJlCez3DNnH3R1q\n+BdaFmvc5XMyH5jOaF0WNxN8v169rmou253nnHzrJ5gsWFzN4N8kNeGTnpAE\nBzfM9DhBUpZzefAbSa0xVoDaRxkPkMgCmLzuwX6N1IthabbcMOrBvLIlU23u\nGMkBzG37Eq7jIieB0yxAwmIRvJ8BNRI4M+jDAAkZnj74W7NjWOUxmcBpkocg\nb1diE3P64MEAqQWV97lG6ArY+xtYoaRhQu2L0slGtbLeKz1cO89My2BePJbw\nR1vCny2+qM/6lXncs4kuP4nMYEz86wV3ulDtDzxsFAXEm3NoFLx7PUxGwp97\na9lo7GKVYbAHI1KEBqE0EG7eBDTlbVlhB+q+ljw6UhlF33wA1GpeMc11jU5/\na54/Wf7PVxGk66C8/byhb7zT6WGg9wKsZNgzC3mkcKHRyB/673oIZzlTcuIz\nlXY3\r\n=4ZPx\r\n-----END PGP SIGNATURE-----\r\n","size":191042,"noattachment":false,"key":"/@nearform/flame/-/@nearform/flame-9.1.0.tgz"},"main":"index.js","engines":{"node":">= 12.13.0"},"gitHead":"c1949de9391a6a91a5eb752ac315bccd587d954a","scripts":{"lint":"standard --fix | snazzy","test":"npm run lint && tap","ci-lint":"npm run lint","test:file":"standard | snazzy && tap --no-cov","ci-test-cov":"tap","visualize-all":"node debug/visualize-all.js","ci-test-no-cov":"tap --no-cov","visualize-watch":"node debug/visualize-watch.js"},"_npmUser":{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/clinicjs/node-clinic-flame.git","type":"git"},"_npmVersion":"6.14.15","description":"Programmable interface to Clinic.js Flame","directories":{},"_nodeVersion":"14.18.1","dependencies":{"0x":"^4.10.2","pump":"^3.0.0","d3-fg":"^6.13.1","rimraf":"^3.0.2","d3-array":"^2.0.2","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","@nearform/clinic-common":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^15.0.10","snazzy":"^9.0.0","chokidar":"^3.4.3","standard":"^16.0.3","murmur3hash-wasm":"1.0.1"},"_npmOperationalInternal":{"tmp":"tmp/flame_9.1.0_1636553564284_0.6406691672808493","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":1636553564437,"_cnpm_publish_time":1636553564437,"dist-tags":{"latest":"9.1.0","next":"4.0.0-beta.0"}}