Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/inventory.picotech.app/public_html/node_modules/void-elements/ drwxr-xr-x | |
| Viewing file: Select action/file-type: var cheerio = require('cheerio')
, http = require('http');
http.get('http://www.w3.org/html/wg/drafts/html/master/syntax.html', function (res) {
var str = '';
res.setEncoding('utf8');
res.on('data', function (buf) {
str += buf;
}).on('end', function () {
var $ = cheerio.load(str);
var codes = $('dfn#void-elements')
.parent()
.next()
.text()
.replace(/\s/gm,'')
.split(",")
.reduce(function (obj, code) {
obj[code] = true;
return obj;
}, {});
console.log('/**');
console.log(' * This file automatically generated from `pre-publish.js`.');
console.log(' * Do not manually edit.');
console.log(' */');
console.log();
console.log('module.exports = %s;', JSON.stringify(codes, null, 2));
});
});
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0039 ]-- |