johno / prettify-html

[WIP] Prettify your html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prettify-html Build Status NPM Package NPM Downloads js-standard-style

Work in progress

Prettify your html.

Installation

npm install --save prettify-html

or

yarn add prettify-html

Usage

var prettifyHtml = require('prettify-html')

var html = '<div>my <a href="link">nested</a> html</div>'
var prettified = prettifyHtml(html)

/* output:
<div>
  my
  <a href="link">nested</a>
  html
</div>
*/

License

MIT

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Crafted with <3 by John Otander (@4lpine).

Contributors:


This package was initially generated with yeoman and the p generator.

About

[WIP] Prettify your html

License:MIT License


Languages

Language:JavaScript 100.0%