{"name":"@nearform/bubbleprof","version":"1.1.0","keywords":[],"license":"GPL-3.0-or-later","_id":"@nearform/bubbleprof@1.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-bubbleprof#readme","bugs":{"url":"https://github.com/nearform/node-clinic-bubbleprof/issues"},"dist":{"shasum":"7e67ec528468e76c40f5cd5d6e819ee3be97ab48","tarball":"http://registry-npm.ywwl.com/@nearform/bubbleprof/download/@nearform/bubbleprof-1.1.0.tgz","fileCount":170,"integrity":"sha512-QVSOcBtfic6cWTUA2QMjgKlD5atpqNwuxvLiTy0+DmNI1lE6RmMIoyOz9KdmpCWYdugtziq9czZZo9OOeDFAXA==","signatures":[{"sig":"MEUCIF9nEM3Oeg/ux4gq5IywlimpC0nsL2fz0ZuTqUbcychWAiEA0vB9kj/lESYtVzy3BUF4FOYEnElzA6yJT6i/VXovFuY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1467803,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbVkUwCRA9TVsSAnZWagAAUuwQAJKT5YH07EUi93Yu7Yk5\nUG8dvuAOkeN0a70CJtlkm3M0l5NwDaHBZ5wEhCNDsGM3bf6syVzmY7WrjtgD\nq7pufeGdotH2xCIla0EBZJ+sA7XyKXFw9Y2hpj7Qk8NIGCR+yD+JcTSkxX1h\nXte54Kt3ogf3cX0WZ4GgLADJFkjnqV2gFIHk57gV1hxkDICyMrkQA3l/ig7h\n4xm09NnrtlXTW9ZiEcz5zuITVYVCSs3TgwLqqltzoka0IUw+epeq5YQS5y2u\nOEmAW/aqKlwOGylfJYGOfd3XMeQ0ygvGDWDoNl8KlTxnnbkgbp3giFqVrJ9p\nXH5wLUJk7KcLCX6PrFFK9J41HFufO4C9Zugqsz/gCxYp/aJmgtZ/TDkYVjEg\nNclJzfFdXcB91YVLjpx3VcXA3mLDKaYafIo8/eEjqcIu/WHKgaTUBimzWXpO\nLdJhGJnwBPiHyRjWOlDCrRYr6HzprjBVPSxFFx3DfiFHws8udrECK7m0TMDm\nASNS1i4Ha1SpMqW/QSWzqZA3SicDQPe7K6dd9GAlgNgKTb4Z8jlnt7oBc/UR\n/xAlk4q08qlzw67vYrB8GPhp9iIT6wmA+frcpDkBdgAanQIZkofCBU7sPse4\n9Fsh79Tuf2ZuvZ63rs6d+iSLJFwbD1esb6BqVxsR8TWUMOump3MJ5OmiFXVz\nhDbS\r\n=QzJx\r\n-----END PGP SIGNATURE-----\r\n","size":321847,"noattachment":false,"key":"/@nearform/bubbleprof/-/@nearform/bubbleprof-1.1.0.tgz"},"gitHead":"d913916e8ce934b469c1f5a00f2d82644b218605","scripts":{"lint":"standard --fix | snazzy","test":"standard | snazzy && tap --no-cov test/*.test.js","ci-cov":"tap --statements=98 test/*.test.js","ci-lint":"standard | snazzy","ci-test":"tap test/*.test.js","visualize-all":"node debug/visualize-all.js"},"_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-bubbleprof.git","type":"git"},"_npmVersion":"6.1.0","description":"Programmable interface to clinic bubbleprof","directories":{},"_nodeVersion":"10.7.0","dependencies":{"d3":"^4.13.0","pump":"^1.0.2","async":"^2.5.0","lodash":"^4.14.0","endpoint":"^0.4.5","JSONStream":"^1.3.1","browserify":"^14.5.0","array-flatten":"^1.1.1","on-net-listen":"^1.0.0","stream-template":"0.0.4","protocol-buffers":"^3.2.1","node-trace-log-join":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^12.0.0","rimraf":"^2.6.2","snazzy":"^7.0.0","express":"^4.16.2","standard":"^10.0.3","startpoint":"^0.3.2","inspectpoint":"^0.2.2","shuffle-array":"^1.0.1","cross-platform-sock":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bubbleprof_1.1.0_1532380464623_0.8860413504954765","host":"s3://npm-registry-packages"},"readme":"# Clinic.js Bubbleprof\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/nearform/node-clinic-bubbleprof.svg)](https://greenkeeper.io/)\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] Bubbleprof. Learn more about Clinic.js: https://clinicjs.org/\n\n![Screenshot](screenshot.png)\n\n## Supported node versions\n\n* Node.js 10.0.0 and above\n* Node.js 9.4.0 and above\n* Node.js 8.10.0 and above\n\n## Example\n\n```js\nconst ClinicBubbleprof = require('@nearform/bubbleprof')\nconst bubbleprof = new ClinicBubbleprof()\n\nbubbleprof.collect(['node', './path-to-script.js'], function (err, filepath) {\n  if (err) throw err\n\n  bubbleprof.visualize(filepath, filepath + '.html', function (err) {\n    if (err) throw err\n  })\n})\n```\n\nTo get started with Clinic.js Bubbleprof you might want to take a look at the [examples\nrepo](https://github.com/clinicjs/node-clinic-bubbleprof-examples).\n\n## Documentation\n\n```js\nconst ClinicBubbleprof = require('@nearform/bubbleprof')\nconst bubbleprof = new ClinicBubbleprof()\n```\n\n### new ClinicBubbleprof([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#### `bubbleprof.collect(args, callback)`\n\nStarts a process by using:\n\n```js\nconst { spawn } = require('child_process')\nspawn(args[0], ['-r', 'sampler.js'].concat(args.slice(1)))\n```\n\nThe injected sampler will produce a file in the current working directory, with\nthe process `PID` in its filename. The filepath relative to the current working\ndirectory will be the value in the callback.\n\nstdout, stderr, and stdin will be relayed to the calling process. As will the\n`SIGINT` event.\n\n#### `bubbleprof.visualize(dataFilename, outputFilename, callback)`\n\nWill consume the data file specified by `dataFilename`, this data file will be\nproduced by the sampler using `bubbleprof.collect`.\n\n`bubbleprof.visualize` will then output a standalone HTML file to\n`outputFilename`. When completed the callback will be called with no extra\narguments, except a possible 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/bubbleprof.svg?style=flat-square\n[npm-url]: https://www.npmjs.org/@nearform/bubbleprof\n[npm-downloads]: http://img.shields.io/npm/dm/@nearform/bubbleprof.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-bubbleprof/workflows/CI/badge.svg\n[actions-url]: https://github.com/clinicjs/node-clinic-bubbleprof/actions\n","publish_time":1532380464725,"_cnpm_publish_time":1532380464725,"dist-tags":{"latest":"7.0.1","next":"2.0.0-beta.0"}}