@cjting/prettier_d
v0.1.3
Published
Speed up prettier by running in the daemon
Downloads
14
Readme
prettier_d
Run prettier
in a separate daemon process to speed it up.
prettier_d
has no dependencies because it bundles prettier
with it. The bundled version is 2.5.1
.
This project is modfied from prettier_d_slim.
Install && Usage
$ npm install -g @cjting/prettier_d
# specify a file
$ prettier_d test.js
# or use stdin
$ prettier_d --stdin --stdin-path test.js < test.js
prettier_d
will try to resolve the prettier config path from the input path (or use --stdin-path
if input comes from stdin).
You can use --config-path
to clearly specify it.
Use these commands the control the daemon process:
pretter_d status
: check daemon statuspretter_d start
: start the daemonpretter_d stop
: stop the daemonpretter_d restart
: restart the daemon
The daemon statsu file is in ~/.pretter_d
.
Change Log
0.1.x
First release version.