JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q24635F
  • License MIT

A tool for refactoring JavaScript modules

Package Exports

  • esm-refactor

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 (esm-refactor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

esm-refactor

Build Status

Refactoring projects with a lot of ES modules is hard. This tool makes it easier. It is not perfect, but it will do 80% of the work for you. In most cases the linter will help with the last 20%.

Install

npm install -g esm-refactor

Usage

esm-refactor [command]

Commands:
  esm-refactor split <file>                 split one file into a folder with files for each export
  esm-refactor move-file <source> <target>  move a file with ES modules

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]