Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quellverzeichnis  html-codemod.js

  Interaktion und
PortierbarkeitJAVA
 

/*
 * extract script content from a series of html files, run a
 * jscodeshift codemod on them and overwrite the original file.
 *
 * Usage: node html-codemod.js codemod-file list of files to process
 */

const { JSDOM } = require('jsdom');
const fs = require('fs');
const {execFileSync} = require('child_process');

const codemod = process.argv[2];
const filenames = process.argv.slice(3);
filenames.forEach((filename) => {
    const originalContent = fs.readFileSync(filename, 'utf-8');
    const dom = new JSDOM(originalContent);
    const document = dom.window.document;
    const scriptTags = document.querySelectorAll('script');
    const lastTag = scriptTags[scriptTags.length - 1];
    const script = lastTag.innerHTML;
    if (!script) {
        console.log('NO SCRIPT FOUND', filename);
        return;
    }
    const scriptFilename = filename + '.codemod.js';
    const scriptFile = fs.writeFileSync(scriptFilename, script);
    // exec jscodeshift
    const output = execFileSync('./node_modules/.bin/jscodeshift', ['-t', codemod, scriptFilename]);
    console.log(filename, output.toString()); // output jscodeshift output.
    // read back file, resubstitute
    const newScript = fs.readFileSync(scriptFilename, 'utf-8').toString();
    const modifiedContent = originalContent.split(script).join(newScript);
    fs.writeFileSync(filename, modifiedContent);
    fs.unlinkSync(scriptFilename);
});

Messung V0.5 in Prozent
C=98 H=100 G=98

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.15Angebot  (Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-08-26) ¤

*Eine klare Vorstellung vom Zielzustand






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=655579