Server IP : 66.29.132.122 / Your IP : 3.22.240.209 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/self/root/proc/thread-self/root/opt/alt/alt-nodejs8/root/lib/node_modules/npm/node_modules/errno/ |
Upload File : |
#!/opt/alt/alt-nodejs8/root/usr/bin/node var request = require('request') , fs = require('fs') , uvheadloc = 'https://raw.github.com/joyent/libuv/master/include/uv.h' , defreg = /^\s*XX\(\s*([\-\d]+),\s*([A-Z]+),\s*"([^"]*)"\s*\)\s*\\?$/ request(uvheadloc, function (err, response) { if (err) throw err var data, out data = response.body .split('\n') .map(function (line) { return line.match(defreg) }) .filter(function (match) { return match }) .map(function (match) { return { errno: parseInt(match[1], 10) , code: match[2] , description: match[3] }}) out = 'var all = module.exports.all = ' + JSON.stringify(data, 0, 1) + '\n\n' out += '\nmodule.exports.errno = {\n ' + data.map(function (e, i) { return '\'' + e.errno + '\': all[' + i + ']' }).join('\n , ') + '\n}\n\n' out += '\nmodule.exports.code = {\n ' + data.map(function (e, i) { return '\'' + e.code + '\': all[' + i + ']' }).join('\n , ') + '\n}\n\n' out += '\nmodule.exports.custom = require("./custom")(module.exports)\n' fs.writeFile('errno.js', out) })