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

259
Views
Command-line tool to check JavaScript file ECMAScript version

I'm working on a large (very large) project with tons of JavaScript files that are constantly being modified by different teams in different locations around the world. Some devs have used ES6 syntax which we need to find because some parts of our code have to run in browsers that don't support ES6 syntax.

We have been asked to check all our code to make sure that we haven't inadvertently used any ES6 syntax and I was wondering what would be the best way to check lots of JavaScript files in lots of sub-folders?

Other similar questions I've found on SO have answers saying to use JSLint or similar...this is great for checking as you go along, but there are too many files to do manually.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Easy done ES Check

Side Note

Some devs have used ES6 syntax which we need to find because some parts of our code have to run in browsers that don't support ES6 syntax.

Rather than finding ES6 code to replace it with ES5 (which is a waste of resources) you should simply take your codebase and transpile it to ES5 with a tool like Babel. Your devs keep working with whatever EcmaScript version they prefer and you get ES5 code at the end of the day.

about 4 years ago · Juan Pablo Isaza Report
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!