{"name":"stacks-to-json-stack-tree","version":"1.0.0","description":"Convert dtrace/perf stack samples into a JSON tree","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"David Mark Clements","email":"david.clements@nearform.com"},"license":"Apache 2.0","dependencies":{"debug":"^3.1.0","end-of-stream":"^1.4.1","through2":"^2.0.3"},"gitHead":"652b918b305af4651bbdc7a696037fc2b852ad4a","_id":"stacks-to-json-stack-tree@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"integrity":"sha512-FgPvxNCAbVEQgCeznjoBMxgVk5KdLTA/L/NUbTbCj/Kezyy+mSNkOHsc4ewnA/t2rfQQBno8IUJPe2VW3+RlJw==","shasum":"3496b590b281a44d99896e03d329b8ec4f55998a","tarball":"http://registry-npm.ywwl.com/stacks-to-json-stack-tree/download/stacks-to-json-stack-tree-1.0.0.tgz","fileCount":4,"unpackedSize":14440,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHbQGs3IiG+LCouFGdHiVxvsusKyUMkTz/4Vkt8ocrVnAiAGndOfpGnryf9vXZB3RtJjoLdCo/CtGjq2wTZpfKhG9A=="}],"size":5538,"noattachment":false,"key":"/stacks-to-json-stack-tree/-/stacks-to-json-stack-tree-1.0.0.tgz"},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stacks-to-json-stack-tree_1.0.0_1519679088932_0.6404169316955268"},"_hasShrinkwrap":false,"readme":"# stacks-to-json-stack-tree \n\nConvert dtrace/perf stack samples into a JSON tree\n\n## Installation\n\n```sh\nnpm install stacks-to-json-stack-tree --save\n```\n\n## Usage\n\n```js \nvar fs = require('fs')\nvar stacksToJsonStackTree = require('stacks-to-json-stack-tree')\nvar mapFrames = (frames, instance) => frames // mapFrames is optional\nvar convertAndCollectFromStream = stacksToJsonStackTree(mapFrames, function (err, json) {\n  if (err) throw err\n  console.log(json)\n})\n\nfs.createReadStream('path/to/stacks').pipe(convertAndCollectFromStream)\n```\n\n## Dependencies\n\n- [debug](https://github.com/visionmedia/debug): small debugging utility\n- [end-of-stream](https://github.com/mafintosh/end-of-stream): Call a callback when a readable/writable/duplex stream has completed or failed.\n- [through2](https://github.com/rvagg/through2): A tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise\n\n## Dev Dependencies\n\n\nNone\n\n## License\n\nApache 2.0\n","publish_time":1519679088977,"_cnpm_publish_time":1519679088977,"dist-tags":{"latest":"1.0.2"}}