{"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","tarball":"http://registry-npm.ywwl.com/rethrow/download/rethrow-0.2.0.tgz","integrity":"sha512-unbNtY7baksWC5ZASMhj+SumcqrJ9Z6M1mr31SunOwxLxYwO7ly5wX14sb4mJCnebbuJ3cDqctqqB34qTIYHYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCb6x8NKxto2BjBrkkJWKOiIjvwY8uncqjgTvsDuNGK6QIhALsDLXeEjdzL5vvxMaR1akdIFTD6XU5trxQfPS+cR9sN"}],"size":3343,"noattachment":false,"key":"/rethrow/-/rethrow-0.2.0.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":1434353479780,"_cnpm_publish_time":1434353479780,"dist-tags":{"latest":"0.2.3"}}