morph-cli 0.1.0

AST-based codebase migration and codemod tool for JavaScript and TypeScript projects.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# CommonJS Migration Example

This example demonstrates how to use morph-cli to migrate a simple CommonJS project to ECMAScript Modules (ESM).

## Instructions

1.  Navigate to this directory.
2.  Run the migration command in dry-run mode:
    ```bash
    morph run commonjs-to-esm .
    ```
3.  To apply the changes, run:
    ```bash
    morph run commonjs-to-esm . --write
    ```
4.  Observe `index.js` being transformed to use `import` and `export` statements.