
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
es-check-min
Advanced tools
A CLI tool and library to find the minimum compatible ECMAScript version of a JavaScript file.
A CLI tool and library to find the minimum compatible ECMAScript version of a JavaScript file.
A simple tool built on es-check to find the lowest supported ECMAScript version of a JavaScript file.
The es-check-min tool does not require any arguments, and simply runs a loop to determine the file's lowest compatible ECMAScript version. This is in slight contrast to es-check which checks a file against a specified ECMAScript version.
Detection of the following ECMAScript versions is supported:
Note: The underlying es-check implementation technically supports ES3 and ES14 / ES2023, but certain tests aren't passing against these targets so they are not currently returned.
The es-check-min CLI tool requires Node 20+. The exported APIs are ESM and share the Node 20+ requirement.
Invoke directly:
npx es-check-min
Or, install locally to access the CLI commands in a single project or to import the provided APIs:
npm install es-check-min
Or, install globally for access across your system:
npm install --global es-check-min
es-check-min ./mystery-file.js
prints...
es6/es2015
es-check-minGet the minimum supported ECMAScript version of a JavaScript file.
Usage:
es-check-min <file>
| Positional Argument | Description | Type |
|---|---|---|
file | Path to the JavaScript file to check. | string |
| Option | Description | Type |
|---|---|---|
--help-h | Show help | boolean |
--version-v | Show version number | boolean |
A single function is exported:
function esCheckMin(path: string): Promise<EsVersion | undefined>
Requests for something like this have come up once or twice:
es-check-min is just a trivial wrapper over es-check. All credit goes to Jeff Wainwright and contributors for creating and maintaining es-check.
Issues and pull requests are welcome.
MIT © Eric Mika
FAQs
A CLI tool and library to find the minimum compatible ECMAScript version of a JavaScript file.
The npm package es-check-min receives a total of 13 weekly downloads. As such, es-check-min popularity was classified as not popular.
We found that es-check-min demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.