{"_id":"stacks-to-json-stack-tree","_rev":"1657107","name":"stacks-to-json-stack-tree","description":"Convert dtrace/perf stack samples into a JSON tree","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"time":{"modified":"2026-11-01T05:57:28.000Z","created":"2018-02-26T21:04:48.977Z","1.0.2":"2018-02-26T21:09:52.391Z","1.0.1":"2018-02-26T21:06:48.652Z","1.0.0":"2018-02-26T21:04:48.977Z"},"users":{},"author":{"name":"David Mark Clements","email":"david.clements@nearform.com"},"repository":{"type":"git","url":"git+https://github.com/davidmarkclements/stacks-to-json-stack-tree.git"},"versions":{"1.0.2":{"name":"stacks-to-json-stack-tree","version":"1.0.2","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"},"devDependencies":{},"repository":{"type":"git","url":"git+https://github.com/davidmarkclements/stacks-to-json-stack-tree.git"},"keywords":[],"bugs":{"url":"https://github.com/davidmarkclements/stacks-to-json-stack-tree/issues"},"homepage":"https://github.com/davidmarkclements/stacks-to-json-stack-tree#readme","gitHead":"4936f906fe53319444d9b087204fabc387417c0c","_id":"stacks-to-json-stack-tree@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"integrity":"sha512-a7VubHKwj71T3niU4Fs+umqA5EFiyrAVX5S8rI2W9lDj+HbWNKmqjZC38K+YvkYz+uVbU4/mVWp355IESwQ8Zg==","shasum":"ac271f80d52d865c213ba43706eb80cb6c364833","tarball":"http://registry-npm.ywwl.com/stacks-to-json-stack-tree/download/stacks-to-json-stack-tree-1.0.2.tgz","fileCount":4,"unpackedSize":14796,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLfMhpv1daDYHU/5lSUngJDlv3hKyn/3NuL10rh62ehgIgeFRU++zBb/51yWI6aa/Rh8gDk/8kFn83JvYOH8Q5eag="}],"size":5625,"noattachment":false,"key":"/stacks-to-json-stack-tree/-/stacks-to-json-stack-tree-1.0.2.tgz"},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stacks-to-json-stack-tree_1.0.2_1519679392333_0.8252499758263208"},"_hasShrinkwrap":false,"publish_time":1519679392391,"_cnpm_publish_time":1519679392391},"1.0.1":{"name":"stacks-to-json-stack-tree","version":"1.0.1","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"},"devDependencies":{},"repository":{"type":"git","url":"git+https://github.com/davidmarkclements/stacks-to-json-tree.git"},"keywords":[],"bugs":{"url":"https://github.com/davidmarkclements/stacks-to-json-tree/issues"},"homepage":"https://github.com/davidmarkclements/stacks-to-json-tree#readme","gitHead":"242b045a610e94ff9cc5764878f446f5b83e457a","_id":"stacks-to-json-stack-tree@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"integrity":"sha512-MT76xVo9C8+T+gVFbIfVgZ7qdiR4nkx01T9/sz2ITp7P5JZj+qXIBNx44PesebEW6q2HeASjkfIkv7l+Bui2yg==","shasum":"345a3b9e966acfab9303f4b26ff2f9872d2a1b74","tarball":"http://registry-npm.ywwl.com/stacks-to-json-stack-tree/download/stacks-to-json-stack-tree-1.0.1.tgz","fileCount":4,"unpackedSize":14778,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFn3SVVeBlKTzFRIh34uuuN7Q3M/wek7dT/REIzmHBPPAiEAq+zqKpkelDNl7rY09hLNGZOisRwt3UtxP3t4zH1uqg0="}],"size":5626,"noattachment":false,"key":"/stacks-to-json-stack-tree/-/stacks-to-json-stack-tree-1.0.1.tgz"},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stacks-to-json-stack-tree_1.0.1_1519679208609_0.9430363555541295"},"_hasShrinkwrap":false,"publish_time":1519679208652,"_cnpm_publish_time":1519679208652},"1.0.0":{"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,"publish_time":1519679088977,"_cnpm_publish_time":1519679088977}},"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","_attachments":{},"homepage":"https://github.com/davidmarkclements/stacks-to-json-stack-tree#readme","bugs":{"url":"https://github.com/davidmarkclements/stacks-to-json-stack-tree/issues"},"license":"Apache 2.0"}