This is the core of regularjs-beautify, it contains the core logic about beautifying and is designed as easy to be integrated with. You'll not normally use this repo directly, consider to use the other downstream repositories.
- Includes a fresh parser rewriting in typescript
- Follows the styles used in Prettier
- Has few options
npm install regularjs-beautify-core
then
import { Formatter } from "regularjs-beautify-core"
npx regularjs-beautify-core the-file-to-be-beautified
Above command just puts the results into stdin, plus an option -w
if you want to effect the source file.