regularjs-beautify-core
v0.0.8
Published
Beautify the template content of Regularjs
Downloads
3
Maintainers
Readme
regularjs-beautify-core
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.
Features
- Includes a fresh parser rewriting in typescript
- Follows the styles used in Prettier
- Has few options
Usage
Use as lib
npm install regularjs-beautify-core
then
import { Formatter } from "regularjs-beautify-core"
Use as command-line
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.