Software: Apache. PHP/7.3.33 uname -a: Linux web25.us.cloudlogin.co 5.10.237-xeon-hst #1 SMP Mon May 5 15:10:04 UTC 2025 x86_64 uid=233359(alpastrology) gid=888(tty) groups=888(tty),33(tape) Safe-mode: OFF (not secure) /usr/lib/node_modules/npm/node_modules/errno/ drwxr-xr-x |
Viewing file: Select action/file-type: #!/usr/bin/env 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) }) |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.012 ]-- |