Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 726 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 726 Bytes

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.