{"_id":"stack-filter","_rev":"941593","name":"stack-filter","description":"Cleaner and more readable stack traces for all","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"augustl","email":"august@augustl.com"},{"name":"dominykas","email":"hello@dominykas.com"},{"name":"dwittner","email":"d.wittner@gmx.de"}],"time":{"modified":"2021-09-23T02:07:57.000Z","created":"2012-11-26T22:05:20.218Z","1.0.1":"2015-11-14T14:21:14.628Z","1.0.0":"2013-09-16T22:40:16.459Z","0.1.0":"2012-11-26T22:05:20.218Z"},"users":{"dtiziani":true},"author":{"name":"Christian Johansen"},"repository":{"type":"git","url":"git+https://github.com/busterjs/stack-filter.git"},"versions":{"1.0.1":{"name":"stack-filter","version":"1.0.1","description":"Cleaner and more readable stack traces for all","homepage":"http://busterjs.org/docs/stack-filter","author":{"name":"Christian Johansen"},"contributors":[{"name":"Christian Johansen","email":"christian@cjohansen.no","url":"http://cjohansen.no"}],"license":"BSD-3-Clause","main":"./lib/stack-filter","repository":{"type":"git","url":"git+https://github.com/busterjs/stack-filter.git"},"scripts":{"test":"node node_modules/buster/bin/buster-test","test-debug":"node --debug-brk node_modules/buster/bin/buster-test"},"devDependencies":{"buster":"0.7.x"},"gitHead":"ed1e096eea2a1f33cb409a88312093a4d7878da0","bugs":{"url":"https://github.com/busterjs/stack-filter/issues"},"_id":"stack-filter@1.0.1","_shasum":"cd4176b5d97a50481c7fa54bfea0ef19364cf502","_from":".","_npmVersion":"3.3.12","_nodeVersion":"4.2.2","_npmUser":{"name":"dominykas","email":"hello@dominykas.com"},"dist":{"shasum":"cd4176b5d97a50481c7fa54bfea0ef19364cf502","size":5011,"noattachment":false,"key":"/stack-filter/-/stack-filter-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/stack-filter/download/stack-filter-1.0.1.tgz"},"maintainers":[{"name":"augustl","email":"august@augustl.com"},{"name":"dominykas","email":"hello@dominykas.com"},{"name":"dwittner","email":"d.wittner@gmx.de"}],"directories":{},"publish_time":1447510874628,"_cnpm_publish_time":1447510874628,"_hasShrinkwrap":false,"deprecated":"No longer maintained; There's a modern parser: https://www.npmjs.com/package/stacktrace-js"},"1.0.0":{"name":"stack-filter","version":"1.0.0","description":"Cleaner and more readable stack traces for all","homepage":"http://busterjs.org/docs/stack-filter","author":{"name":"Christian Johansen"},"contributors":[{"name":"Christian Johansen","email":"christian@cjohansen.no","url":"http://cjohansen.no"}],"main":"./lib/stack-filter","repository":{"type":"git","url":"https://github.com/busterjs/stack-filter"},"scripts":{"test":"./node_modules/buster/bin/buster-test"},"devDependencies":{"buster":"0.6.11"},"_id":"stack-filter@1.0.0","dist":{"shasum":"552810582606d0484c1e35d4d2f1fdf21d129f79","size":4893,"noattachment":false,"key":"/stack-filter/-/stack-filter-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/stack-filter/download/stack-filter-1.0.0.tgz"},"maintainers":[{"name":"augustl","email":"august@augustl.com"},{"name":"dominykas","email":"hello@dominykas.com"},{"name":"dwittner","email":"d.wittner@gmx.de"}],"directories":{},"publish_time":1379371216459,"_hasShrinkwrap":false,"deprecated":"No longer maintained; There's a modern parser: https://www.npmjs.com/package/stacktrace-js","_cnpm_publish_time":1379371216459},"0.1.0":{"name":"stack-filter","version":"0.1.0","description":"Cleaner and more readable stack traces for all","homepage":"http://busterjs.org/docs/stack-filter","author":{"name":"Christian Johansen"},"contributors":[{"name":"Christian Johansen","email":"christian@cjohansen.no","url":"http://cjohansen.no"}],"main":"./lib/stack-filter","repository":{"type":"git","url":"https://github.com/busterjs/stack-filter"},"scripts":{"test":"./node_modules/buster/bin/buster-test"},"devDependencies":{"buster":"0.6.2"},"readmeFilename":"Readme.rst","_id":"stack-filter@0.1.0","dist":{"shasum":"1a95c51cdfe7c67c1d4a94a0fde2b5f7b478c8fc","size":4213,"noattachment":false,"key":"/stack-filter/-/stack-filter-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/stack-filter/download/stack-filter-0.1.0.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"cjohansen","email":"christian@cjohansen.no"},"maintainers":[{"name":"augustl","email":"august@augustl.com"},{"name":"dominykas","email":"hello@dominykas.com"},{"name":"dwittner","email":"d.wittner@gmx.de"}],"directories":{},"publish_time":1353967520218,"_hasShrinkwrap":false,"deprecated":"No longer maintained; There's a modern parser: https://www.npmjs.com/package/stacktrace-js","_cnpm_publish_time":1353967520218}},"readme":"# stack-filter\n\n[![Build status](https://secure.travis-ci.org/busterjs/stack-filter.png?branch=master)](http://travis-ci.org/busterjs/stack-filter)\n\n> Cleaner and more readable stack traces for all\n\n`stack-filter` is a tiny module that strips out unwanted elements of a stack\ntrace and optimizing the remaining items for readability. `stack-filter` works\nin browsers (including old and rowdy ones, like IE6) and Node. It will define\nitself as an AMD module if you want it to (i.e. if there's a `define` function\navailable).\n\n\n## API\n\n### `stackFilter(stackTrace[, cwd])`\n\nAccepts a stack trace as a string (e.g. one obtained from `error.stack`) and\nan optional working directory, and returns a pruned stack trace in the form of\nan array of lines.\n\nThe `cwd` option is used to shorten paths by removing common prefixes. For\nexample, Buster.JS uses this option to trim down URLs like\n`http://localhost:1111/sessions/0d15095714a93cd8f9a42e97b0b280fa1550a6ac/resources/lib/file.js`\nto `lib/files.js`. The current working directory is optional, and may be\neither a string or a regular expression.\n\n```javascript\nvar stackFilter = require(\"stack-filter\");\n\nstackFilter.filters.push(\"jquery.js\"); // Ignore lines from within jQuery\nstackFilter(error.stack); //=> Lines, excluding any lines from within jQuery\n```\n\n### `stackFilter.filters`\n\nThis array contains all the filters. A filter may be either a string (partial\nmatch against path) or a regular expression.\n","_attachments":{},"homepage":"http://busterjs.org/docs/stack-filter","bugs":{"url":"https://github.com/busterjs/stack-filter/issues"},"license":"BSD-3-Clause"}