{"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","tarball":"http://registry-npm.ywwl.com/rethrow/download/rethrow-0.1.0.tgz","integrity":"sha512-U/4Iqn5fhHoUh+lSvnlNpstdv/JHw7oXU1VZ4JpurkF9teFjfIZdKPNs21RVilu+H8Wu7YM/4hsSoBZ2+P/tQA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhQOHGemx6IXM1hnMEpgUuEbVrbQn4xbBRyCFuyTt3wQIgMcwivEMUeACeNZjAPoD6rRJ76fgXKCbIwExDl1ZdbW0="}],"size":2728,"noattachment":false,"key":"/rethrow/-/rethrow-0.1.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":1432463639345,"_cnpm_publish_time":1432463639345,"dist-tags":{"latest":"0.2.3"}}