Wanna run prettier in your editor, but fast? Welcome to prettierd!
This is built on top of core_d.js and integrates with prettier.
The prettierd script always takes the file in the standard input and the positional parameter with the name of the file:
$ cat file.ts | prettierd file.ts
Following the instructions from https://github.com/mantoni/core_d.js#moar-speed:
$ PORT=`cat ~/.prettierd | cut -d" " -f1`
$ TOKEN=`cat ~/.prettierd | cut -d" " -f2`
$ echo "$TOKEN $PWD file.ts" | cat - file.ts | nc localhost $PORT
Checkout src/service.ts for a list of supported languages/extensions. Feel free to open a PR if you're missing something.