dprint fmt <files...>

Formats the source files and writes the result to the file system

Arguments

NameDescription
filesList of file patterns in quotes to format. This overrides what is specified in the config file

Options

NameDescription
--diffOutputs a check-like diff of every formatted file
--stdin <extension/file-name/file-path>Format stdin and output the result to stdout. Provide an absolute file path to apply the inclusion and exclusion rules or an extension or file name to always format the text
--incremental [incremental]Only format files when they change. This may alternatively be specified in the configuration file
--excludes <pattern>
  • Repeatable ♾
--allow-node-modulesAllows traversing node module directories (unstable - This flag will be renamed to be non-node specific in the future)