Esupgrade

Auto-update JavaScript and TypeScript syntax to new ECMAScript features based on browser support. Use when the user asks to modernize, upgrade, or clean up JavaScript or TypeScript syntax.

codingjoe 10494f4 716 B Updated

File contents

Use the CLI with npx on files, directories, or standard input:

npx -y esupgrade [--baseline <newly-available|widely-available>] [--check] [--write] <files-or-directories|->
  • Use --check to preview changes and fail when updates are needed.
  • Use - to read from standard input and write the transformed code to standard output.
  • Use --write to apply updates in place for file inputs.
  • Use --baseline to choose newly-available or widely-available (default).

codingjoe/esupgrade/tree/main/skills/esugprade commit 10494f4d5c

Frequently asked questions

npx skillmds@latest add codingjoe/esupgrade