JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q23684F
  • License ISC

Attempts to cleanly upgrade from es5 syntax to es6

Package Exports

  • es6-upgrade

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (es6-upgrade) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

es6-update

This is a quick (and dirty) way to clean up most migration issues from es5 code to es6+ code.

WARNING: The dirty... This will not clean up all feasable combinations of useless returns. It may leave hanging chads in the form of not deleting closing parens.

Install

npm i -g es6-upgrade

Usage

es6-upgrade <filename> # or es6up
es6up --help

# To preview output
es6up -p <filename>