{"dist":{"shasum":"186d94ed2011aea1dfb73f590addb752777fa5a2","tarball":"https://registry.npmjs.org/errno-codes/-/errno-codes-1.0.0.tgz","integrity":"sha512-D/8iLg3Jfyvxknn0sXl2/52HtJpEXQ387/ZeH21rmgk5+UURJnOzgD5Efkym22Kq0yQMQ+84A0Mq4oYFHG8ClA==","signatures":[{"sig":"MEUCIH264c8UfO+NQVSuTEx0kSSyTTcMHBIGlG1NDn7pM0gEAiEAm4OwuaVpkKX8GEz7x4DEw0L35F117XkZZxUB5rAWrXY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"error","name":"errno-codes","author":{"name":"Gabriel Llamas"},"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)","engines":{"node":">=0.4.10"},"keywords":["error","errno"],"licenses":[{"url":"http://www.opensource.org/licenses/mit-license.html","type":"MIT"}],"repository":{"url":"git://github.com/Gagle/Node-Error.git","type":"git"},"description":"Exposes the errno codes for node.js.","directories":{},"maintainers":[{"name":"Gagle","email":"gaglekas@gmail.com"}],"_id":"errno-codes@1.0.0","version":"1.0.0"}