{"_id":"template-error","_rev":"231691","name":"template-error","description":"Make template errors easy to understand and fix.","dist-tags":{"latest":"0.1.2"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T15:46:36.000Z","created":"2015-08-11T07:38:28.328Z","0.1.2":"2015-08-21T14:11:35.799Z","0.1.1":"2015-08-11T09:38:54.510Z","0.1.0":"2015-08-11T07:38:28.328Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/template-error.git"},"versions":{"0.1.2":{"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","size":2571,"noattachment":false,"key":"/template-error/-/template-error-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/template-error/download/template-error-0.1.2.tgz"},"directories":{},"publish_time":1440166295799,"_cnpm_publish_time":1440166295799,"_hasShrinkwrap":false},"0.1.1":{"name":"template-error","description":"Make template errors easy to understand and fix.","version":"0.1.1","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":{"kind-of":"^2.0.0","lazy-cache":"^0.1.0","lodash.template":"^3.6.2","rethrow":"^0.2.1"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["error","rethrow","template"],"verb":{"related":{"list":["rethrow"]}},"gitHead":"92a5d71c9d13f5e4b5910d50f288559d6bc86f5f","_id":"template-error@0.1.1","_shasum":"a4344e22a553014ebd68147a0c2304a355dad39b","_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":"a4344e22a553014ebd68147a0c2304a355dad39b","size":2569,"noattachment":false,"key":"/template-error/-/template-error-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/template-error/download/template-error-0.1.1.tgz"},"directories":{},"publish_time":1439285934510,"_cnpm_publish_time":1439285934510,"_hasShrinkwrap":false},"0.1.0":{"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","size":2580,"noattachment":false,"key":"/template-error/-/template-error-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/template-error/download/template-error-0.1.0.tgz"},"directories":{},"publish_time":1439278708328,"_cnpm_publish_time":1439278708328,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/jonschlinkert/template-error","bugs":{"url":"https://github.com/jonschlinkert/template-error/issues"},"license":"MIT"}