Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

145
Vistas
How to process one huge .js file or view as an hierachy model and modify the contents

The big .js file contains >8 million lines with all of the following commands. No class information is available since the file was exported from a software.

Is there any simple way to listing/classifying view the contents and do some batch modification?

    var Project = MainProg.createTask()

    var Budget = Project.createDoubleVariable()
    Budget.name = "Department"
    Budget.value = 10000.0

    Project.doubleVariables.add(Budget)

    var Team = Project.createIntegerVariable()
    Team.name = "Gold"
    Team.value = 11

    Project.integerVariables.add(seed)

    var file1 = Project.createStringVariable()
    file1.name = "File1"
    file1.value = "C:\\WorkDir\\Task2022\\...."

    Project.stringVariables.add(file1)

    var resultcontainer = Project.createResultContainer()
    resultcontainer.name = "Results"

    var property = Project.createProperty()
    property.key = "condition"
    property.value = "Initial"

    resultcontainer.properties.add(property)

    var property_2 = Project.createProperty()
    property_2.key = "task"
    property_2.value = "Summer2022"

    resultcontainer.properties.add(property_2)

    var property_3 = Project.createProperty()
    property_3.key = "TeamHours"
    property_3.value = "20.0 [h]"

    resultcontainer.properties.add(property_3)

    .....
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda