Package Exports
- pretty
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pretty) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
pretty 
Some tweaks for beautifying HTML with js-beautify according to my preferences.
Install with npm
npm i pretty --save
Usage
var pretty = require('pretty');
pretty(STRING_OF_HTML_HERE);
Before
<!DOCTYPE html> <html lang="en"> <head>
<meta charset="UTF-8"> <title>Home</title>
</head> <body> This is content. </body> </html>
After
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Home</title>
</head>
<body>
This is content.
</body>
</html>
Run tests
Install dev dependencies:
node i -d && mocha
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Jon Schlinkert
License
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb on January 04, 2015.