{"name":"errno-codes","version":"1.0.0","description":"Exposes the errno codes for node.js.","keywords":["error","errno"],"author":{"name":"Gabriel Llamas"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-Error.git"},"engines":{"node":">=0.4.10"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"error","readme":"<a name=\"start\"></a>\r\n\r\nNode Error\r\n==========\r\n\r\n#### Exposes the errno codes for node.js. ####\r\n\r\n[Show me!](#showme) | [Availability](#availability) | [Compatibility](#compatibility) | [Documentation](#documentation)\r\n\r\nVersion: 1.0.0\r\n\r\nWhen you are writing a node.js module you'll probably deal with errors. If you get a predefined error you can just resend it but if you want to instantiate a predefined one you need an errno code. Node.js does not expose these errors. Furthermore, they're not the standard errno codes. They are defined at [`deps/uv/include/uv.h`](https://github.com/joyent/node/blob/master/deps/uv/include/uv.h).\r\n\r\nThis module eases the error management providing predefined `Error` instances for every errno code and the ability to create customized errors.\r\n\r\n<a name=\"showme\"></a>\r\n#### Show me! [↑](#start) ####\r\n\r\n```javascript\r\nvar Error = require (\"error\");\r\n\r\nconsole.log (Error.get (Error.ENOENT));\r\n\r\n/*\r\nPrints:\r\n\r\n{\r\n\t[Error: ENOENT]\r\n\terrno: 34,\r\n\tcode: \"ENOENT\",\r\n\tdescription: \"no such file or directory\"\r\n}\r\n*/\r\n```\r\n\r\n<a name=\"availability\"></a>\r\n#### Availability [↑](#start) ####\r\n\r\nVia npm:\r\n\r\n```\r\nnpm install errno-codes\r\n```\r\n\r\nOr simply copying `build/error.js` into your project's directory and `require()` accordingly.\r\n\r\n***\r\n\r\n<a name=\"compatibility\"></a>\r\n#### Compatibility [↑](#start) ####\r\n\r\n✔ Node *\r\n\r\n***\r\n\r\n<a name=\"documentation\"></a>\r\n#### Documentation [↑](#start) ####\r\n \r\n[Reference](https://github.com/Gagle/Node-Error/wiki/Reference)  \r\n[Examples](https://github.com/Gagle/Node-Error/tree/master/examples)  \r\n[Change Log](https://github.com/Gagle/Node-Error/wiki/Change-Log)  \r\n[MIT License](https://github.com/Gagle/Node-Error/blob/master/LICENSE)","_id":"errno-codes@1.0.0","dist":{"shasum":"186d94ed2011aea1dfb73f590addb752777fa5a2","tarball":"http://registry-npm.ywwl.com/errno-codes/download/errno-codes-1.0.0.tgz","integrity":"sha512-D/8iLg3Jfyvxknn0sXl2/52HtJpEXQ387/ZeH21rmgk5+UURJnOzgD5Efkym22Kq0yQMQ+84A0Mq4oYFHG8ClA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH264c8UfO+NQVSuTEx0kSSyTTcMHBIGlG1NDn7pM0gEAiEAm4OwuaVpkKX8GEz7x4DEw0L35F117XkZZxUB5rAWrXY="}],"size":2912,"noattachment":false,"key":"/errno-codes/-/errno-codes-1.0.0.tgz"},"maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"directories":{},"publish_time":1344087923927,"_cnpm_publish_time":1344087923927,"dist-tags":{"latest":"1.0.2"}}