{"_id":"rethrow","_rev":"96480","name":"rethrow","description":"Re-throw an error to get better error reporting for templates.","dist-tags":{"latest":"0.2.3"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:32:15.000Z","created":"2015-05-24T10:33:59.345Z","0.2.3":"2015-08-21T14:10:43.394Z","0.2.1":"2015-08-11T07:43:19.156Z","0.2.0":"2015-06-15T07:31:19.780Z","0.1.0":"2015-05-24T10:33:59.345Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/rethrow.git"},"versions":{"0.2.3":{"name":"rethrow","description":"Re-throw an error to get better error reporting for templates.","version":"0.2.3","homepage":"https://github.com/jonschlinkert/rethrow","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/rethrow.git"},"bugs":{"url":"https://github.com/jonschlinkert/rethrow/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"engine":"^0.1.5","mocha":"*","should":"*"},"keywords":["error","handle","template"],"dependencies":{"ansi-bgred":"^0.1.1","ansi-red":"^0.1.1","ansi-yellow":"^0.1.1","extend-shallow":"^1.1.4","lazy-cache":"^0.2.3","right-align":"^0.1.3"},"verb":{"related":{"list":["template-error","verb","assemble","template"]}},"gitHead":"ac4293fdaf585887efe96a550d922dcac6d16cff","_id":"rethrow@0.2.3","_shasum":"c5528f190e89ec7535889452a1be68996b5f6616","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"c5528f190e89ec7535889452a1be68996b5f6616","size":3244,"noattachment":false,"key":"/rethrow/-/rethrow-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/rethrow/download/rethrow-0.2.3.tgz"},"directories":{},"publish_time":1440166243394,"_cnpm_publish_time":1440166243394,"_hasShrinkwrap":false},"0.2.1":{"name":"rethrow","description":"Re-throw an error to get better error reporting for templates.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/rethrow","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/rethrow.git"},"bugs":{"url":"https://github.com/jonschlinkert/rethrow/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"kind-of":"^2.0.0","lodash":"^3.9.1","mocha":"*","should":"*"},"keywords":["error","handle","template"],"dependencies":{"ansi-bgred":"^0.1.1","ansi-red":"^0.1.1","ansi-yellow":"^0.1.1","extend-shallow":"^1.1.4","right-align":"^0.1.3"},"verb":{"related":{"list":["template-error","verb","assemble","template"]}},"gitHead":"3bb370209b493f836e164bb6fbafe4a35ddb0e7f","_id":"rethrow@0.2.1","_shasum":"ae2e342fa3675d4f97153e6995095c621d5b255d","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ae2e342fa3675d4f97153e6995095c621d5b255d","size":3225,"noattachment":false,"key":"/rethrow/-/rethrow-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rethrow/download/rethrow-0.2.1.tgz"},"directories":{},"publish_time":1439278999156,"_cnpm_publish_time":1439278999156,"_hasShrinkwrap":false},"0.2.0":{"name":"rethrow","description":"Re-throw an error to get better error reporting for templates.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/rethrow","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/rethrow.git"},"bugs":{"url":"https://github.com/jonschlinkert/rethrow/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"lodash":"^3.9.1","mocha":"*","should":"*"},"keywords":["error","handle","template"],"dependencies":{"ansi-bgred":"^0.1.1","ansi-red":"^0.1.1","ansi-yellow":"^0.1.1","extend-shallow":"^1.1.4","right-align":"^0.1.3"},"gitHead":"f5e103958478486e0b37f8ddc8d8d59d8f7a58ea","_id":"rethrow@0.2.0","_shasum":"71f6c3fb988e2a2a9e4e224954eacbe21280e12b","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"71f6c3fb988e2a2a9e4e224954eacbe21280e12b","size":3343,"noattachment":false,"key":"/rethrow/-/rethrow-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rethrow/download/rethrow-0.2.0.tgz"},"directories":{},"publish_time":1434353479780,"_cnpm_publish_time":1434353479780,"_hasShrinkwrap":false},"0.1.0":{"name":"rethrow","description":"Re-throw an error to get better error reporting for templates.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/rethrow","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/rethrow.git"},"bugs":{"url":"https://github.com/jonschlinkert/rethrow/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/rethrow/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"lodash":"^3.9.1","mocha":"*","should":"*"},"keywords":[],"_id":"rethrow@0.1.0","_shasum":"7364b1ef6862696882594a88b66d5af8cfaf5e58","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"7364b1ef6862696882594a88b66d5af8cfaf5e58","size":2728,"noattachment":false,"key":"/rethrow/-/rethrow-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rethrow/download/rethrow-0.1.0.tgz"},"directories":{},"publish_time":1432463639345,"_cnpm_publish_time":1432463639345,"_hasShrinkwrap":false}},"readme":"# rethrow [![NPM version](https://badge.fury.io/js/rethrow.svg)](http://badge.fury.io/js/rethrow)\n\n> Re-throw an error to get better error reporting for templates.\n\nBased on [rethrow](https://github.com/jadejs/jade/blob/f2a18826a13d52e4038534043dd78f1c3723fa2c/lib/runtime.js#L202) in Jade.\n\n**Example**\n\n[![screen shot 2015-05-24 at 6 29 35 am](https://cloud.githubusercontent.com/assets/383994/7787511/a8b8ab90-01de-11e5-9210-709d19a88223.png)](https://github.com/jadejs/jade/blob/f2a18826a13d52e4038534043dd78f1c3723fa2c/lib/runtime.js#L202)\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i rethrow --save\n```\n\n## Usage\n\n```js\nvar rethrow = require('rethrow');\n```\n\nSee [template-error](https://github.com/jonschlinkert/template-error) for usage examples.\n\n## API\n\n### [rethrow](index.js#L27)\n\nRe-throw the given `err` in context to the offending\ntemplate expression in `filename` at the given `lineno`.\n\n**Params**\n\n* `err` **{Error}**: Error object\n* `filename` **{String}**: The file path of the template\n* `lineno` **{String}**: The line number of the expression causing the error.\n* `str` **{String}**: Template string\n\n## Related projects\n\n* [assemble](http://assemble.io): Static site generator for Grunt.js, Yeoman and Node.js. Used by Zurb Foundation, Zurb Ink, H5BP/Effeckt,… [more](http://assemble.io)\n* [template-error](https://github.com/jonschlinkert/template-error): Make template errors easy to understand and fix.\n* [template](https://github.com/jonschlinkert/template): Render templates using any engine. Supports, layouts, pages, partials and custom template types. Use template… [more](https://github.com/jonschlinkert/template)\n* [verb](https://github.com/assemble/verb): Documentation generator for GitHub projects. Extremely powerful, easy to use, can generate anything from API… [more](https://github.com/assemble/verb)\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/rethrow/issues/new)\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2015 Jon Schlinkert\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on August 11, 2015._","_attachments":{},"homepage":"https://github.com/jonschlinkert/rethrow","bugs":{"url":"https://github.com/jonschlinkert/rethrow/issues"},"license":"MIT"}