Skip to content

johno/prettify-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published