Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

127
Views
Leer un archivo y reemplazar contenido entre etiquetas

Estoy buscando poder leer un archivo fuente, modificar el contacto dentro de las etiquetas y luego enviarlo a un nuevo archivo.

 fs.readFile('testfile.js' , "UTF-8", function(error, code) { }

<< archivo de prueba.js >>

 <html> <head></head> <script> alert("test"); </script> <body>...

Estoy tratando de encontrar y reemplazar el contacto de la etiqueta del script, recordando que el contacto podría ser bastante grande y podría haber varias etiquetas.

El código debe ejecutarse en node.js, que actualmente está leyendo el archivo usando var fs = require('fs-extra');

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!