Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 351 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 351 Bytes

Install

$ npm install code-beautify

Usage

import beautify from 'code-beautify'

beautify('const a = 1', 'js') // <span class="kwd">const</span> a <span class="opt">=</span> <span class="num">1</span>

Supported languages

  • markup Such as HTML、XML
  • js JavaScript and JSX
  • css
  • sh Shell
  • java