{"name":"template-error","description":"Make template errors easy to understand and fix.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/template-error","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/template-error.git"},"bugs":{"url":"https://github.com/jonschlinkert/template-error/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"engine":"^0.1.5","kind-of":"^2.0.1","lazy-cache":"^0.2.3","rethrow":"^0.2.3"},"devDependencies":{"extend-shallow":"^2.0.1","mocha":"*","should":"*"},"keywords":["error","rethrow","template"],"verb":{"related":{"list":["rethrow"]}},"gitHead":"92a5d71c9d13f5e4b5910d50f288559d6bc86f5f","_id":"template-error@0.1.2","_shasum":"18c9f600d90f2f3dfba0833e37f7cb6f413542d4","_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":"18c9f600d90f2f3dfba0833e37f7cb6f413542d4","tarball":"http://registry-npm.ywwl.com/template-error/download/template-error-0.1.2.tgz","integrity":"sha512-soS5m+iT4k/okmMyydvMjPlmyz3CowvMcOxfgoAqccmkyF81W3D+zMi4lhqbSIhTgLhKE/Bh8wUlXzr6F+ERCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChBis0EgGUvr9I9nCUqzPvCc8yk0FF21byixFIU34EbQIhAO2sYVmxkILa/pBhwS4IShuJ1Xt9fRQ21mVhO0BHHMmu"}],"size":2571,"noattachment":false,"key":"/template-error/-/template-error-0.1.2.tgz"},"directories":{},"readme":"# template-error [![NPM version](https://badge.fury.io/js/template-error.svg)](http://badge.fury.io/js/template-error)\n\n> Make template errors easy to understand and fix.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i template-error --save\n```\n\n## Usage\n\n```js\nvar rethrow = require('template-error');\n\nrethrow('\\n<%= a %>\\n<%= b %>', {\n  data: {a: 'aaa'}\n});\n```\n\nWhen a template variable is not defined, like `<%= b %>` in the example above, instead of getting a cryptic error message and wasting time on debugging, you get this:\n\n<img width=\"560\" alt=\"screen shot 2015-08-11 at 3 35 27 am\" src=\"https://cloud.githubusercontent.com/assets/383994/9192549/101ba4b6-3fda-11e5-8a4f-6a03853dacd9.png\">\n\n## Related projects\n\n[rethrow](https://www.npmjs.com/package/rethrow): Re-throw an error to get better error reporting for templates. | [homepage](https://github.com/jonschlinkert/rethrow)\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/template-error/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 21, 2015._\n","publish_time":1440166295799,"_cnpm_publish_time":1440166295799,"dist-tags":{"latest":"0.1.2"}}