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

0.0.12 • Public • Published

regularjs-beautify-dozen

Easy to format all the templates inside a JavaScript file. It only takes care of the style of those template strings beginning with the specific html comment - <!-- @regular -->.

Feel free to chain this tool before/after other JavaScript code formatter, it will not conflict with the others since it only work on Regularjs templates and do not touch the other parts of our source code.

Usage

Use as lib

npm install regularjs-beautify-dozen

then

import { format } from "regularjs-beautify-dozen"

Use as command-line

npx regularjs-beautify-dozen the-file-to-be-beautified

Note: above command will effect the source file directly.

Package Sidebar

Install

npm i regularjs-beautify-dozen

Weekly Downloads

2

Version

0.0.12

License

MIT

Unpacked Size

37.3 kB

Total Files

21

Last publish

Collaborators

  • hsiaosiyuan0