Server IP : 127.0.0.2 / Your IP : 18.116.23.178 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/ubuntu/.npm/registry.npmjs.org/errno/ |
Upload File : |
{"_id":"errno","_rev":"40-fd682ad084da9ea71df72e33ceb275d7","name":"errno","description":"libuv errno details exposed","dist-tags":{"latest":"0.1.6"},"versions":{"0.0.1":{"author":{"name":"@rvagg","email":"rod@vagg.org"},"name":"errno","description":"libuv errno details exposed","keywords":["errors","errno","libuv"],"version":"0.0.1","main":"errno.js","dependencies":{},"devDependencies":{"request":"*"},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"_id":"errno@0.0.1","_engineSupported":true,"_npmVersion":"1.1.18","_nodeVersion":"v0.6.16-pre","_defaultsLoaded":true,"dist":{"shasum":"e137cb376994c57c623b6c4736ecddf1792e5840","tarball":"https://registry.npmjs.org/errno/-/errno-0.0.1.tgz"},"maintainers":[{"name":"rvagg","email":"rod@vagg.org"}],"directories":{}},"0.0.2":{"author":{"name":"@rvagg","email":"rod@vagg.org"},"name":"errno","description":"libuv errno details exposed","keywords":["errors","errno","libuv"],"version":"0.0.2","main":"errno.js","dependencies":{},"devDependencies":{"request":"*"},"optionalDependencies":{},"engines":{"node":"*"},"_id":"errno@0.0.2","dist":{"shasum":"b39d2dabbe4c7ffb3dd1c893cade4e1ac9adff6b","tarball":"https://registry.npmjs.org/errno/-/errno-0.0.2.tgz"},"maintainers":[{"name":"rvagg","email":"rod@vagg.org"}],"directories":{}},"0.0.3":{"name":"errno","authors":["Rod Vagg @rvagg <rod@vagg.org> (https://github.com/rvagg)"],"description":"libuv errno details exposed","keywords":["errors","errno","libuv"],"version":"0.0.3","main":"errno.js","dependencies":{},"bin":{"errno":"./cli.js"},"devDependencies":{"request":"*"},"repository":{"type":"git","url":"https://github.com/rvagg/node-errno.git"},"license":"MIT","_id":"errno@0.0.3","dist":{"shasum":"7a8b1228cff3d9ae2d63ed0ad38ca6181547c0f1","tarball":"https://registry.npmjs.org/errno/-/errno-0.0.3.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":"rod@vagg.org"}],"directories":{}},"0.0.4":{"name":"errno","authors":["Rod Vagg @rvagg <rod@vagg.org> (https://github.com/rvagg)"],"description":"libuv errno details exposed","keywords":["errors","errno","libuv"],"version":"0.0.4","main":"errno.js","dependencies":{},"bin":{"errno":"./cli.js"},"devDependencies":{"request":"*"},"repository":{"type":"git","url":"https://github.com/rvagg/node-errno.git"},"license":"MIT","scripts":{"test":"node ./test.js"},"bugs":{"url":"https://github.com/rvagg/node-errno/issues"},"_id":"errno@0.0.4","dist":{"shasum":"1a1d1944c1217b43263e06e5a9ba0a1742bc6c92","tarball":"https://registry.npmjs.org/errno/-/errno-0.0.4.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":"rod@vagg.org"}],"directories":{}},"0.0.5":{"name":"errno","authors":["Rod Vagg @rvagg <rod@vagg.org> (https://github.com/rvagg)"],"description":"libuv errno details exposed","keywords":["errors","errno","libuv"],"version":"0.0.5","main":"errno.js","dependencies":{},"bin":{"errno":"./cli.js"},"devDependencies":{"request":"*"},"repository":{"type":"git","url":"https://github.com/rvagg/node-errno.git"},"license":"MIT","scripts":{"test":"node ./test.js"},"bugs":{"url":"https://github.com/rvagg/node-errno/issues"},"_id":"errno@0.0.5","dist":{"shasum":"6d5198004b7a8dd9862f607d00c5a76fda27d834","tarball":"https://registry.npmjs.org/errno/-/errno-0.0.5.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":"rod@vagg.org"}],"directories":{}},"0.1.0":{"name":"errno","authors":["Rod Vagg @rvagg <rod@vagg.org> (https://github.com/rvagg)"],"description":"libuv errno details exposed","keywords":["errors","errno","libuv"],"version":"0.1.0","main":"errno.js","dependencies":{"prr":"~0.0.0"},"bin":{"errno":"./cli.js"},"devDependencies":{"request":"*"},"repository":{"type":"git","url":"https://github.com/rvagg/node-errno.git"},"license":"MIT","scripts":{"test":"node ./test.js"},"bugs":{"url":"https://github.com/rvagg/node-errno/issues"},"_id":"errno@0.1.0","dist":{"shasum":"f65eb3a27c47f1a9c325038f03f111d425ed1f77","tarball":"https://registry.npmjs.org/errno/-/errno-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":"rod@vagg.org"}],"directories":{}},"0.1.1":{"name":"errno","authors":["Rod Vagg @rvagg <rod@vagg.org> (https://github.com/rvagg)"],"description":"libuv errno details exposed","keywords":["errors","errno","libuv"],"version":"0.1.1","main":"errno.js","dependencies":{"prr":"~0.0.0"},"bin":{"errno":"./cli.js"},"devDependencies":{"request":"*"},"repository":{"type":"git","url":"https://github.com/rvagg/node-errno.git"},"license":"MIT","scripts":{"test":"node ./test.js"},"bugs":{"url":"https://github.com/rvagg/node-errno/issues"},"homepage":"https://github.com/rvagg/node-errno","_id":"errno@0.1.1","dist":{"shasum":"fda4aae52d07f67c741e50a5a50612786f9d0ed3","tarball":"https://registry.npmjs.org/errno/-/errno-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":"rod@vagg.org"}],"directories":{}},"0.1.2":{"name":"errno","authors":["Rod Vagg @rvagg <rod@vagg.org> (https://github.com/rvagg)"],"description":"libuv errno details exposed","keywords":["errors","errno","libuv"],"version":"0.1.2","main":"errno.js","dependencies":{"prr":"~0.0.0"},"bin":{"errno":"./cli.js"},"devDependencies":{"tape":"~3.5.0"},"repository":{"type":"git","url":"https://github.com/rvagg/node-errno.git"},"license":"MIT","scripts":{"test":"tape test.js"},"gitHead":"35e8e67ec489f2e5bf51cc1f6a1031bccdfdb588","bugs":{"url":"https://github.com/rvagg/node-errno/issues"},"homepage":"https://github.com/rvagg/node-errno","_id":"errno@0.1.2","_shasum":"ec94dac3794a92cec9e1f08502b165933a805808","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.5.2-nightly201503191514b82355","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":"rod@vagg.org"}],"dist":{"shasum":"ec94dac3794a92cec9e1f08502b165933a805808","tarball":"https://registry.npmjs.org/errno/-/errno-0.1.2.tgz"},"directories":{}},"0.1.3":{"name":"errno","authors":["Rod Vagg @rvagg <rod@vagg.org> (https://github.com/rvagg)"],"description":"libuv errno details exposed","keywords":["errors","errno","libuv"],"version":"0.1.3","main":"errno.js","dependencies":{"prr":"~0.0.0"},"bin":{"errno":"./cli.js"},"devDependencies":{"tape":"~3.5.0"},"repository":{"type":"git","url":"git+https://github.com/rvagg/node-errno.git"},"license":"MIT","scripts":{"test":"tape test.js"},"gitHead":"e6d13d6d693f55d7ede246fcd239a3b9b5c82160","bugs":{"url":"https://github.com/rvagg/node-errno/issues"},"homepage":"https://github.com/rvagg/node-errno#readme","_id":"errno@0.1.3","_shasum":"f89c207cff1f776f590f7e32f4009f910934db5c","_from":".","_npmVersion":"2.11.3","_nodeVersion":"2.3.2-nightly20150625dcbb9e1da6","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":"rod@vagg.org"}],"dist":{"shasum":"f89c207cff1f776f590f7e32f4009f910934db5c","tarball":"https://registry.npmjs.org/errno/-/errno-0.1.3.tgz"},"directories":{}},"0.1.4":{"name":"errno","authors":["Rod Vagg @rvagg <rod@vagg.org> (https://github.com/rvagg)"],"description":"libuv errno details exposed","keywords":["errors","errno","libuv"],"version":"0.1.4","main":"errno.js","dependencies":{"prr":"~0.0.0"},"bin":{"errno":"./cli.js"},"devDependencies":{"tape":"~3.5.0"},"repository":{"type":"git","url":"https://github.com/rvagg/node-errno.git"},"license":"MIT","scripts":{"test":"tape test.js"},"gitHead":"1c2b1fcbf22ef2bafbf6cda378cfed400f5163fd","bugs":{"url":"https://github.com/rvagg/node-errno/issues"},"homepage":"https://github.com/rvagg/node-errno","_id":"errno@0.1.4","_shasum":"b896e23a9e5e8ba33871fc996abd3635fc9a1c7d","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"rvagg","email":"rod@vagg.org"},"maintainers":[{"name":"rvagg","email":"rod@vagg.org"}],"dist":{"shasum":"b896e23a9e5e8ba33871fc996abd3635fc9a1c7d","tarball":"https://registry.npmjs.org/errno/-/errno-0.1.4.tgz"},"directories":{}},"0.1.5":{"name":"errno","authors":["Rod Vagg @rvagg <rod@vagg.org> (https://github.com/rvagg)"],"description":"libuv errno details exposed","keywords":["errors","errno","libuv"],"version":"0.1.5","main":"errno.js","dependencies":{"prr":"~1.0.1"},"bin":{"errno":"./cli.js"},"devDependencies":{"tape":"~4.8.0"},"repository":{"type":"git","url":"git+https://github.com/rvagg/node-errno.git"},"license":"MIT","scripts":{"test":"tape test.js"},"gitHead":"3e9c83ee3bfa69561856f7fd3fcd38853de4e367","bugs":{"url":"https://github.com/rvagg/node-errno/issues"},"homepage":"https://github.com/rvagg/node-errno#readme","_id":"errno@0.1.5","_npmVersion":"5.5.1","_nodeVersion":"9.2.0","_npmUser":{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"},"dist":{"integrity":"sha512-tv2H+e3KBnMmNRuoVG24uorOj3XfYo+/nJJd07PUISRr0kaMKQKL5kyD+6ANXk1ZIIsvbORsjvHnCfC4KIc7uQ==","shasum":"a563781a6052bc2c9ccd89e8cef0eb9506e0c321","tarball":"https://registry.npmjs.org/errno/-/errno-0.1.5.tgz"},"maintainers":[{"email":"ralphtheninja@riseup.net","name":"ralphtheninja"},{"email":"r@va.gg","name":"rvagg"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/errno-0.1.5.tgz_1512918459081_0.24774957518093288"},"directories":{}},"0.1.6":{"name":"errno","authors":["Rod Vagg @rvagg <rod@vagg.org> (https://github.com/rvagg)"],"description":"libuv errno details exposed","keywords":["errors","errno","libuv"],"version":"0.1.6","main":"errno.js","dependencies":{"prr":"~1.0.1"},"bin":{"errno":"./cli.js"},"devDependencies":{"error-stack-parser":"^2.0.1","inherits":"^2.0.3","tape":"~4.8.0"},"repository":{"type":"git","url":"git+https://github.com/rvagg/node-errno.git"},"license":"MIT","scripts":{"test":"node --use_strict test.js"},"gitHead":"dab1099bb035b8950d7578b5c5d6f8b459318a42","bugs":{"url":"https://github.com/rvagg/node-errno/issues"},"homepage":"https://github.com/rvagg/node-errno#readme","_id":"errno@0.1.6","_npmVersion":"5.6.0","_nodeVersion":"9.2.0","_npmUser":{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"},"dist":{"integrity":"sha512-IsORQDpaaSwcDP4ZZnHxgE85werpo34VYn1Ud3mq+eUsF593faR8oCZNXrROVkpFu2TsbrNhHin0aUrTsQ9vNw==","shasum":"c386ce8a6283f14fc09563b71560908c9bf53026","tarball":"https://registry.npmjs.org/errno/-/errno-0.1.6.tgz"},"maintainers":[{"email":"ralphtheninja@riseup.net","name":"ralphtheninja"},{"email":"r@va.gg","name":"rvagg"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/errno-0.1.6.tgz_1513086218646_0.35013204999268055"},"directories":{}}},"readme":"# node-errno\n\n> Better [libuv](https://github.com/libuv/libuv)/[Node.js](https://nodejs.org)/[io.js](https://iojs.org) error handling & reporting. Available in npm as *errno*.\n\n[](https://www.npmjs.com/package/errno)\n[](http://travis-ci.org/rvagg/node-errno)\n[](https://www.npmjs.com/package/errno)\n\n* [errno exposed](#errnoexposed)\n* [Custom errors](#customerrors)\n\n<a name=\"errnoexposed\"></a>\n## errno exposed\n\nEver find yourself needing more details about Node.js errors? Me too, so *node-errno* contains the errno mappings direct from libuv so you can use them in your code.\n\n**By errno:**\n\n```js\nrequire('errno').errno[3]\n// → {\n// \"errno\": 3,\n// \"code\": \"EACCES\",\n// \"description\": \"permission denied\"\n// }\n```\n\n**By code:**\n\n```js\nrequire('errno').code.ENOTEMPTY\n// → {\n// \"errno\": 53,\n// \"code\": \"ENOTEMPTY\",\n// \"description\": \"directory not empty\"\n// }\n```\n\n**Make your errors more descriptive:**\n\n```js\nvar errno = require('errno')\n\nfunction errmsg(err) {\n var str = 'Error: '\n // if it's a libuv error then get the description from errno\n if (errno.errno[err.errno])\n str += errno.errno[err.errno].description\n else\n str += err.message\n\n // if it's a `fs` error then it'll have a 'path' property\n if (err.path)\n str += ' [' + err.path + ']'\n\n return str\n}\n\nvar fs = require('fs')\n\nfs.readFile('thisisnotarealfile.txt', function (err, data) {\n if (err)\n console.log(errmsg(err))\n})\n```\n\n**Use as a command line tool:**\n\n```\n~ $ errno 53\n{\n \"errno\": 53,\n \"code\": \"ENOTEMPTY\",\n \"description\": \"directory not empty\"\n}\n~ $ errno EROFS\n{\n \"errno\": 56,\n \"code\": \"EROFS\",\n \"description\": \"read-only file system\"\n}\n~ $ errno foo\nNo such errno/code: \"foo\"\n```\n\nSupply no arguments for the full list. Error codes are processed case-insensitive.\n\nYou will need to install with `npm install errno -g` if you want the `errno` command to be available without supplying a full path to the node_modules installation.\n\n<a name=\"customerrors\"></a>\n## Custom errors\n\nUse `errno.custom.createError()` to create custom `Error` objects to throw around in your Node.js library. Create error hierarchies so `instanceof` becomes a useful tool in tracking errors. Call-stack is correctly captured at the time you create an instance of the error object, plus a `cause` property will make available the original error object if you pass one in to the constructor.\n\n```js\nvar create = require('errno').custom.createError\nvar MyError = create('MyError') // inherits from Error\nvar SpecificError = create('SpecificError', MyError) // inherits from MyError\nvar OtherError = create('OtherError', MyError)\n\n// use them!\nif (condition) throw new SpecificError('Eeek! Something bad happened')\n\nif (err) return callback(new OtherError(err))\n```\n\nAlso available is a `errno.custom.FilesystemError` with in-built access to errno properties:\n\n```js\nfs.readFile('foo', function (err, data) {\n if (err) return callback(new errno.custom.FilesystemError(err))\n // do something else\n})\n```\n\nThe resulting error object passed through the callback will have the following properties: `code`, `errno`, `path` and `message` will contain a descriptive human-readable message.\n\n## Contributors\n\n* [bahamas10](https://github.com/bahamas10) (Dave Eddy) - Added CLI\n* [ralphtheninja](https://github.com/ralphtheninja) (Lars-Magnus Skog)\n\n## Copyright & Licence\n\n*Copyright (c) 2012-2015 [Rod Vagg](https://github.com/rvagg) ([@rvagg](https://twitter.com/rvagg))*\n\nMade available under the MIT licence:\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished\nto do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","maintainers":[{"email":"ralphtheninja@riseup.net","name":"ralphtheninja"},{"email":"r@va.gg","name":"rvagg"}],"time":{"modified":"2017-12-12T13:43:39.543Z","created":"2012-04-30T11:58:12.433Z","0.0.1":"2012-04-30T11:58:18.254Z","0.0.2":"2012-08-14T02:29:36.553Z","0.0.3":"2012-09-08T03:14:06.013Z","0.0.4":"2013-06-29T04:45:44.019Z","0.0.5":"2013-07-07T09:46:56.244Z","0.1.0":"2013-08-26T00:47:08.697Z","0.1.1":"2014-03-12T00:43:38.114Z","0.1.2":"2015-03-21T06:16:24.911Z","0.1.3":"2015-06-29T01:47:02.365Z","0.1.4":"2015-08-17T04:38:14.094Z","0.1.5":"2017-12-10T15:07:40.019Z","0.1.6":"2017-12-12T13:43:39.543Z"},"repository":{"type":"git","url":"git+https://github.com/rvagg/node-errno.git"},"homepage":"https://github.com/rvagg/node-errno#readme","keywords":["errors","errno","libuv"],"bugs":{"url":"https://github.com/rvagg/node-errno/issues"},"license":"MIT","readmeFilename":"README.md","users":{"nazrhyn":true,"igorissen":true,"scottfreecode":true,"andyd":true,"khai96_":true},"_attachments":{},"_etag":"\"5a2fdd0b-4114\"","_lastModified":"Tue, 12 Dec 2017 13:43:39 GMT"}