👀 Check out the changes in Suspensive v2. read more →
Documentation@suspensive/codemodsUsage

Usage

⚠️

@suspensive/codemods is an experimental feature, so this interface may change.

You can run Suspensive’s Codemods with a single command, easily using npx without the need to install it as a dependency.

Navigate to your project folder in the terminal and run the following command:

npm version

npx @suspensive/codemods <transform> <path>

Adjust <transform> and <path> to match the environment where you want to apply the codemod.

  • <transform>: name of transform
  • <path>: files or directory to transform