{"name":"template-error","description":"Re-throw an.","version":"0.1.0","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":{"type":"MIT","url":"https://github.com/jonschlinkert/template-error/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"kind-of":"^2.0.0","lazy-cache":"^0.1.0","lodash.template":"^3.6.2","rethrow":"^0.2.0"},"devDependencies":{"mocha":"*","should":"*"},"keywords":[],"verb":{"related":{"list":["rethrow"]}},"gitHead":"ac3ef2048b5185e379507dc75c9b17bf8e396d5b","_id":"template-error@0.1.0","_shasum":"b095eb517b74242549ac3422e10586601c2df8ca","_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":"b095eb517b74242549ac3422e10586601c2df8ca","tarball":"http://registry-npm.ywwl.com/template-error/download/template-error-0.1.0.tgz","integrity":"sha512-8pIleVxHVvsOFr+5nF3jXXzofjAGAhCWU3GVgc8YN+w4XEenQE4GWhRjDqccES2M/fWfMgj2ld7JiL/AVPRNqA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSBChN/9IcMJDboyTTMfSLskwLlQomI35MuMRm9Mw22QIhAIxqvK379Nz0bSxJI8zZWUBn79UzrzeWfnI7I/2tDRKi"}],"size":2580,"noattachment":false,"key":"/template-error/-/template-error-0.1.0.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":1439278708328,"_cnpm_publish_time":1439278708328,"dist-tags":{"latest":"0.1.2"}}