@kprint/kprint
v0.63.0
Published
kprint: a pluggable and configurable code formatter written in Rust, forked from dprint.
Readme
@kprint/kprint
kprint is a pluggable and configurable code formatter written in Rust, forked from dprint. It has formatters built in (ex. exec) and runs dprint's plugins.
Install
npm install --global @kprint/kprintThis installs the kprint command, also as dprint for tools
that call that. npm only downloads the binary for your platform, from its
@kprint/kprint-<platform> package.
Use
kprint init # create a configuration file
kprint fmt # format the files
kprint check # check they're formattedOr in a project, as a dev dependency:
npm install --save-dev @kprint/kprint
npx kprint fmt@kjanat/fmt runs kprint fmt as fmt.
See dprint.kjanat.dev for the configuration and the plugins, and the repository for its source.
