JSPM

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

A refactor lib.

Package Exports

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

Readme

3h-refactor

A refactor lib.

Functionality

  • Find the reference(s) to the src file.
  • Automatically change the import/export statement(s) while moving the src file.

Support info

Here is some support info. Please note that this is the default support info, and you can customize the patterns by modifying the regular expression arrays.

Statements

The lib supports most common import/export statements out of the box.

  • import { ... } from "...";
  • import * from "...";
  • import * as ___ from "...";
  • export { ... } from "...";
  • export * from "...";
  • import ___ = require("...");
  • require("...")
  • <script src="..."></script>

File formats

Files with following extensions are included by default.

  • .js
  • .jsx
  • .mjs
  • .json
  • .ts
  • .tsx
  • .html
  • .htm

Usage

In your command line

Usage:
  3h-refactor              - Show help info like this.
  3h-refactor <src>        - Show reference(s) to src file.
  3h-refactor <src> <dist> - Change src file to dist file.

In your app

Just read the declaration files in typings to learn the APIs.