⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
void-elements
/
View File Name :
pre-publish.js
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)); }); });