regularjs-beautify-core
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

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.

/regularjs-beautify-core/

    Package Sidebar

    Install

    npm i regularjs-beautify-core

    Weekly Downloads

    2

    Version

    0.0.8

    License

    MIT

    Unpacked Size

    328 kB

    Total Files

    67

    Last publish

    Collaborators

    • hsiaosiyuan0