---
name: "commonize"
section: "1"
platform: "linux"
package: "node-commoner"
version: "0.15.2+~0.10.8-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/commonize"
---

# commonize(1)

JavaScript transpiler to Node-compatible CommonJS

## NAME

commonize - JavaScript transpiler to Node-compatible CommonJS

## SYNOPSIS

**commonize** \[*options*\] *\<source directory\> \<output directory\>* \[*\<module ID\>* \[*\<module ID\>* ...\]\]

## OPTIONS

- **-V**, **--version**

  output the version number

- **-c**, **--config** \[file\]

  JSON configuration file (no file or - means STDIN)

- **-w**, **--watch**

  Continually rebuild

- **-x**, **--extension** \<js \| coffee \| ...\>

  File extension to assume when resolving module identifiers

- **--relativize**

  Rewrite all module identifiers to be relative

- **--follow-requires**

  Scan modules for required dependencies

- **--use-provides-module**

  Respect @providesModules pragma in files

- **--cache-dir** \<directory\>

  Alternate directory to use for disk cache

- **--no-cache-dir**

  Disable the disk cache

- **--source-charset** \<utf8 \| win1252 \| ...\>

  Charset of source (default: utf8)

- **--output-charset** \<utf8 \| win1252 \| ...\>

  Charset of output (default: utf8)

- **-h**, **--help**

  display help for command
