When 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.
This module eases the error management providing predefined Error instances for every errno code and the ability to create customized errors.
var Error = require ("error");console.log (Error.get (Error.ENOENT));/*Prints:{ [Error: ENOENT] errno: 34, code: "ENOENT", description: "no such file or directory"}*/