{"_id":"errno-codes","_rev":"680500","name":"errno-codes","description":"Exposes the errno codes.","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"gagle","email":"gabriel_llamas_llopis@yahoo.es"}],"time":{"modified":"2021-08-30T02:35:13.000Z","created":"2012-08-04T13:45:23.927Z","1.0.2":"2012-10-09T16:24:29.022Z","1.0.1":"2012-10-09T15:17:01.665Z","1.0.0":"2012-08-04T13:45:23.927Z"},"users":{"stv":true},"author":{"name":"Gabriel Llamas"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-Error.git"},"versions":{"1.0.2":{"name":"errno-codes","version":"1.0.2","description":"Exposes the errno codes.","keywords":["error","errno"],"author":{"name":"Gabriel Llamas"},"repository":{"type":"git","url":"git://github.com/Gagle/Node-Error.git"},"engines":{"node":"*"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.html"}],"main":"error","_id":"errno-codes@1.0.2","dist":{"shasum":"3e2cf56b888dd7200c4367ffc0a7d007be30c7b4","size":2986,"noattachment":false,"key":"/errno-codes/-/errno-codes-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/errno-codes/download/errno-codes-1.0.2.tgz"},"_npmVersion":"1.1.62","_npmUser":{"name":"Gagle","email":"gaglekas@gmail.com"},"maintainers":[{"name":"gagle","email":"gabriel_llamas_llopis@yahoo.es"}],"directories":{},"publish_time":1349799869022,"_cnpm_publish_time":1349799869022,"_hasShrinkwrap":false},"1.0.1":{"name":"errno-codes","version":"1.0.1","description":"Exposes the errno codes.","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","_id":"errno-codes@1.0.1","dist":{"shasum":"61f7b075460784b040de81b07c56b09591356cbf","size":2946,"noattachment":false,"key":"/errno-codes/-/errno-codes-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/errno-codes/download/errno-codes-1.0.1.tgz"},"_npmVersion":"1.1.62","_npmUser":{"name":"Gagle","email":"gaglekas@gmail.com"},"maintainers":[{"name":"gagle","email":"gabriel_llamas_llopis@yahoo.es"}],"directories":{},"publish_time":1349795821665,"_cnpm_publish_time":1349795821665,"_hasShrinkwrap":false},"1.0.0":{"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","_id":"errno-codes@1.0.0","dist":{"shasum":"186d94ed2011aea1dfb73f590addb752777fa5a2","size":2912,"noattachment":false,"key":"/errno-codes/-/errno-codes-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/errno-codes/download/errno-codes-1.0.0.tgz"},"maintainers":[{"name":"gagle","email":"gabriel_llamas_llopis@yahoo.es"}],"directories":{},"publish_time":1344087923927,"_cnpm_publish_time":1344087923927,"_hasShrinkwrap":false}},"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)","_attachments":{}}