regularjs-beautify-dozen
Easy to format all the templates inside a JavaScript file
Last updated 5 months ago by hsiaosiyuan0 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install regularjs-beautify-dozen 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.0.11                                ...           latest (5 months ago)

10 Versions

  • 0.0.11                                ...           5 months ago
  • 0.0.10                                ...           5 months ago
  • 0.0.9                                ...           5 months ago
  • 0.0.8                                ...           5 months ago
  • 0.0.7                                ...           5 months ago
  • 0.0.6                                ...           5 months ago
  • 0.0.5                                ...           5 months ago
  • 0.0.4                                ...           5 months ago
  • 0.0.3                                ...           5 months ago
  • 0.0.2                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |