decaffeinate Verified for current stable LTS

Decaffeinate Command: Convert Require To Import Js Modules

Use for convert require to import js modules with Decaffeinate. Exact CLI syntax to convert require to import js modules using Decaffeinate.

When to use this: Use for convert require to import js modules with Decaffeinate.

Command Syntax

decaffeinate --use-js-modules <path/to/file.coffee>

Command Breakdown

--use-js-modules
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to convert require to import js modules using Decaffeinate.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Decaffeinate directory