{"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","tarball":"http://registry-npm.ywwl.com/rethrow/download/rethrow-0.2.3.tgz","integrity":"sha512-vtB0AIP/FlRbR4stc8szvHXe+N4158/K1hRMZbFHljIiQAHru54M9LylbxNjBGHl9biuwQNVUdvRzVxv1QWAiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJRIv89J2HZDmSPyYqcN389W/gFebLJnUWrxpDdRwy4AIgeCJfjEUXKbZhuXUeOliHF9/T35HgVRxpnCSyRgrU+PE="}],"size":3244,"noattachment":false,"key":"/rethrow/-/rethrow-0.2.3.tgz"},"directories":{},"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._","publish_time":1440166243394,"_cnpm_publish_time":1440166243394,"dist-tags":{"latest":"0.2.3"}}