{"_id":"pug-error","_rev":"3720655","name":"pug-error","description":"Standard error objects for pug","dist-tags":{"canary":"2.1.0-canary-14","latest":"2.1.0"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"time":{"modified":"2025-02-13T06:03:13.000Z","created":"2015-12-04T13:29:35.426Z","2.1.0":"2024-05-24T17:35:01.087Z","2.1.0-canary-14":"2024-05-24T17:33:05.895Z","2.1.0-canary-13":"2021-12-23T17:17:27.742Z","2.0.0":"2020-05-25T12:19:16.931Z","2.0.0-canary-2":"2020-05-25T12:18:49.002Z","2.0.0-canary-1":"2020-05-24T23:07:50.916Z","1.3.3":"2019-06-18T09:44:55.239Z","1.3.2":"2017-01-24T01:07:12.517Z","1.3.1":"2016-06-02T16:59:07.512Z","1.3.0":"2015-12-23T03:20:25.297Z","0.0.0":"2015-12-04T13:29:35.426Z"},"users":{"hyokosdeveloper":true},"author":{"name":"Forbes Lindesay"},"repository":{"type":"git","url":"https://github.com/pugjs/pug/tree/master/packages/pug-error"},"versions":{"2.1.0":{"name":"pug-error","version":"2.1.0","description":"Standard error objects for pug","main":"./lib/index.js","types":"./lib/index.d.ts","keywords":["pug"],"repository":{"type":"git","url":"https://github.com/pugjs/pug/tree/master/packages/pug-error"},"author":{"name":"Forbes Lindesay"},"license":"MIT","_id":"pug-error@2.1.0","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"shasum":"17ea37b587b6443d4b8f148374ec27b54b406e55","size":9060,"noattachment":false,"key":"/pug-error/-/pug-error-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-error/download/pug-error-2.1.0.tgz"},"_npmUser":{"name":"pug-bot","email":"pug-bot@rollingversions.com"},"directories":{},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pug-error_2.1.0_1716572100945_0.40544885803699215"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-05-24T17:35:01.087Z","publish_time":1716572101087,"_source_registry_name":"default","_cnpm_publish_time":1716572101087},"2.1.0-canary-14":{"name":"pug-error","version":"2.1.0-canary-14","description":"Standard error objects for pug","main":"./lib/index.js","types":"./lib/index.d.ts","keywords":["pug"],"repository":{"type":"git","url":"https://github.com/pugjs/pug/tree/master/packages/pug-error"},"author":{"name":"Forbes Lindesay"},"license":"MIT","readmeFilename":"README.md","_id":"pug-error@2.1.0-canary-14","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"shasum":"21142ed19a96e069d424e58ced399b403fdfe531","size":9072,"noattachment":false,"key":"/pug-error/-/pug-error-2.1.0-canary-14.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-error/download/pug-error-2.1.0-canary-14.tgz"},"_npmUser":{"name":"pug-bot","email":"pug-bot@rollingversions.com"},"directories":{},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pug-error_2.1.0-canary-14_1716571985747_0.4640002596156896"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-05-24T17:33:05.895Z","publish_time":1716571985895,"_source_registry_name":"default","_cnpm_publish_time":1716571985895},"2.1.0-canary-13":{"name":"pug-error","version":"2.1.0-canary-13","description":"Standard error objects for pug","main":"./lib/index.js","types":"./lib/index.d.ts","keywords":["pug"],"repository":{"type":"git","url":"https://github.com/pugjs/pug/tree/master/packages/pug-error"},"author":{"name":"Forbes Lindesay"},"license":"MIT","readmeFilename":"README.md","_id":"pug-error@2.1.0-canary-13","_nodeVersion":"12.22.8","_npmVersion":"6.14.15","dist":{"shasum":"5fafeb6528b0f02cc22ba88cf114643e380f8cc1","size":9072,"noattachment":false,"key":"/pug-error/-/pug-error-2.1.0-canary-13.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-error/download/pug-error-2.1.0-canary-13.tgz"},"_npmUser":{"name":"pug-bot","email":"pug-bot@rollingversions.com"},"directories":{},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pug-error_2.1.0-canary-13_1640279847559_0.428878140397021"},"_hasShrinkwrap":false,"publish_time":1640279847742,"_cnpm_publish_time":1640279847742},"2.0.0":{"name":"pug-error","version":"2.0.0","description":"Standard error objects for pug","keywords":["pug"],"repository":{"type":"git","url":"https://github.com/pugjs/pug/tree/master/packages/pug-error"},"author":{"name":"Forbes Lindesay"},"license":"MIT","_id":"pug-error@2.0.0","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"shasum":"5c62173cb09c34de2a2ce04f17b8adfec74d8ca5","size":2317,"noattachment":false,"key":"/pug-error/-/pug-error-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-error/download/pug-error-2.0.0.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"_npmUser":{"name":"pug-bot","email":"pug-bot@rollingversions.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pug-error_2.0.0_1590409156678_0.602371367853187"},"_hasShrinkwrap":false,"publish_time":1590409156931,"_cnpm_publish_time":1590409156931},"2.0.0-canary-2":{"name":"pug-error","version":"2.0.0-canary-2","description":"Standard error objects for pug","keywords":["pug"],"repository":{"type":"git","url":"https://github.com/pugjs/pug/tree/master/packages/pug-error"},"author":{"name":"Forbes Lindesay"},"license":"MIT","readmeFilename":"README.md","_id":"pug-error@2.0.0-canary-2","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"shasum":"14d38061af3e87283dcde2a55677ddf378f9bd5a","size":2325,"noattachment":false,"key":"/pug-error/-/pug-error-2.0.0-canary-2.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-error/download/pug-error-2.0.0-canary-2.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"_npmUser":{"name":"pug-bot","email":"pug-bot@rollingversions.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pug-error_2.0.0-canary-2_1590409128871_0.30320186760523793"},"_hasShrinkwrap":false,"publish_time":1590409129002,"_cnpm_publish_time":1590409129002},"2.0.0-canary-1":{"name":"pug-error","version":"2.0.0-canary-1","description":"Standard error objects for pug","keywords":["pug"],"repository":{"type":"git","url":"https://github.com/pugjs/pug/tree/master/packages/pug-error"},"author":{"name":"Forbes Lindesay"},"license":"MIT","readmeFilename":"README.md","_id":"pug-error@2.0.0-canary-1","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"shasum":"9816f25b1deeeec7136930c6038af0c3a9911b1b","size":2325,"noattachment":false,"key":"/pug-error/-/pug-error-2.0.0-canary-1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-error/download/pug-error-2.0.0-canary-1.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"_npmUser":{"name":"pug-bot","email":"pug-bot@rollingversions.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pug-error_2.0.0-canary-1_1590361670795_0.6369212746171047"},"_hasShrinkwrap":false,"publish_time":1590361670916,"_cnpm_publish_time":1590361670916},"1.3.3":{"name":"pug-error","version":"1.3.3","description":"Standard error objects for pug","keywords":["pug"],"repository":{"type":"git","url":"https://github.com/pugjs/pug/tree/master/packages/pug-error"},"author":{"name":"Forbes Lindesay"},"license":"MIT","gitHead":"1bdf628a70fda7a0d840c52f3abce54b1c6b0130","_id":"pug-error@1.3.3","_nodeVersion":"11.14.0","_npmVersion":"lerna/3.10.8/node@v11.14.0+x64 (darwin)","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"dist":{"shasum":"f342fb008752d58034c185de03602dd9ffe15fa6","size":2353,"noattachment":false,"key":"/pug-error/-/pug-error-1.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-error/download/pug-error-1.3.3.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pug-error_1.3.3_1560851095122_0.6161359800057267"},"_hasShrinkwrap":false,"publish_time":1560851095239,"_cnpm_publish_time":1560851095239},"1.3.2":{"name":"pug-error","version":"1.3.2","description":"Standard error objects for pug","keywords":["pug"],"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/pugjs/pug-error.git"},"author":{"name":"Forbes Lindesay"},"license":"MIT","bugs":{"url":"https://github.com/pugjs/pug-error/issues"},"homepage":"https://github.com/pugjs/pug-error#readme","_id":"pug-error@1.3.2","scripts":{},"_shasum":"53ae7d9d29bb03cf564493a026109f54c47f5f26","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"dist":{"shasum":"53ae7d9d29bb03cf564493a026109f54c47f5f26","size":2296,"noattachment":false,"key":"/pug-error/-/pug-error-1.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-error/download/pug-error-1.3.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pug-error-1.3.2.tgz_1485220030717_0.1997411991469562"},"directories":{},"publish_time":1485220032517,"_cnpm_publish_time":1485220032517,"_hasShrinkwrap":false},"1.3.1":{"name":"pug-error","version":"1.3.1","description":"Standard error objects for pug","keywords":["pug"],"files":["index.js"],"devDependencies":{"istanbul":"*","testit":"^2.0.2"},"scripts":{"test":"node test","coverage":"istanbul cover test"},"repository":{"type":"git","url":"git+https://github.com/pugjs/pug-error.git"},"author":{"name":"Forbes Lindesay"},"license":"MIT","gitHead":"70cff29dd32c2649668b51b95ce05c8c3f600aff","bugs":{"url":"https://github.com/pugjs/pug-error/issues"},"homepage":"https://github.com/pugjs/pug-error#readme","_id":"pug-error@1.3.1","_shasum":"61627425c3f8b307b1c38b10a0b6d5c8e1a3581f","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"timothygu","email":"timothygu99@gmail.com"},"dist":{"shasum":"61627425c3f8b307b1c38b10a0b6d5c8e1a3581f","size":1603,"noattachment":false,"key":"/pug-error/-/pug-error-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-error/download/pug-error-1.3.1.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pug-error-1.3.1.tgz_1464886747080_0.833077079616487"},"directories":{},"publish_time":1464886747512,"_cnpm_publish_time":1464886747512,"_hasShrinkwrap":false},"1.3.0":{"name":"pug-error","version":"1.3.0","description":"Standard error objects for pug","keywords":["pug"],"files":["index.js"],"devDependencies":{"istanbul":"*","testit":"^2.0.2"},"scripts":{"test":"node test","coverage":"istanbul cover test"},"repository":{"type":"git","url":"https://github.com/pugjs/pug-error.git"},"author":{"name":"Forbes Lindesay"},"license":"MIT","gitHead":"f9da0bcd45dc733dba6451b84851b148ef3d1d98","bugs":{"url":"https://github.com/pugjs/pug-error/issues"},"homepage":"https://github.com/pugjs/pug-error","_id":"pug-error@1.3.0","_shasum":"20f5d6aa04208722acd37defb665565397f3c83e","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"dist":{"shasum":"20f5d6aa04208722acd37defb665565397f3c83e","size":2936,"noattachment":false,"key":"/pug-error/-/pug-error-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-error/download/pug-error-1.3.0.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"directories":{},"publish_time":1450840825297,"_cnpm_publish_time":1450840825297,"_hasShrinkwrap":false},"0.0.0":{"name":"pug-error","version":"0.0.0","description":"Standard error objects for jade","keywords":["jade","pug"],"files":["index.js"],"devDependencies":{"istanbul":"*","testit":"^2.0.2"},"scripts":{"test":"node test","coverage":"istanbul cover test"},"repository":{"type":"git","url":"https://github.com/jadejs/jade-error.git"},"author":{"name":"Forbes Lindesay"},"license":"MIT","gitHead":"14bafda70b502aeaaaea7c8c14b45d92aef53035","bugs":{"url":"https://github.com/jadejs/jade-error/issues"},"homepage":"https://github.com/jadejs/jade-error","_id":"pug-error@0.0.0","_shasum":"dd264a39c20d65487df85ff5663097862a16db78","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"dist":{"shasum":"dd264a39c20d65487df85ff5663097862a16db78","size":2945,"noattachment":false,"key":"/pug-error/-/pug-error-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-error/download/pug-error-0.0.0.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"directories":{},"publish_time":1449235775426,"_cnpm_publish_time":1449235775426,"_hasShrinkwrap":false}},"readme":"# pug-error\n\nStandard error objects for pug.  This module is intended for use by the lexer, parser, loader, linker, code-generator and any plugins.\n\n[![Build Status](https://img.shields.io/travis/pugjs/pug-error/master.svg)](https://travis-ci.org/pugjs/pug-error)\n[![Dependencies Status](https://david-dm.org/pugjs/pug/status.svg?path=packages/pug-error)](https://david-dm.org/pugjs/pug?path=packages/pug-error)\n[![NPM version](https://img.shields.io/npm/v/pug-error.svg)](https://www.npmjs.org/package/pug-error)\n\n## Installation\n\n    npm install pug-error\n\n## Usage\n\n```js\nvar error = require('pug-error');\n```\n\n### `error(code, message, options)`\n\nCreate a Pug error object.\n\n`code` is a required unique code for the error type that can be used to pinpoint a certain error.\n\n`message` is a human-readable explanation of the error.\n\n`options` can contain any of the following properties:\n\n- `filename`: the name of the file causing the error\n- `line`: the offending line\n- `column`: the offending column\n- `src`: the Pug source, if available, for pretty-printing the error context\n\nThe resulting error object is a simple Error object with additional properties given in the arguments.\n\n**Caveat:** the `message` argument is stored in `err.msg`, not `err.message`, which is occupied with a better-formatted message.\n\n```js\nvar error = require('pug-error');\n\nvar err = error('MY_CODE', 'My message', {line: 3, filename: 'myfile', src: 'foo\\nbar\\nbaz\\nbash\\nbing'});\n// { code: 'PUG:MY_CODE',\n//   msg: 'My message',\n//   line: 3,\n//   column: undefined,\n//   filename: 'myfile',\n//   src: 'foo\\nbar\\nbaz\\nbash\\nbing',\n//   message: 'myfile:3\\n    1| foo\\n    2| bar\\n  > 3| baz\\n    4| bash\\n    5| bing\\n\\nMy message' }\n\nthrow err;\n```\n\n## License\n\n  MIT\n","_attachments":{},"license":"MIT"}