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

149
Views
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
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!