@ryanburnette/html-remove-empty-lines
v1.1.6
Published
Remove empty lines from HTML.
Downloads
37
Readme
html-remove-empty-lines
Remove empty lines from HTML.
Features
- removes empty lines from HTML files
- does not damage formatting within
<pre>
tags - cli helper takes a directory and runs recursively on all
.html
files - WARNING cli helper updates files in place
cli
Install globally with npm to use in your local environment.
npm install -g @ryanburnette/html-remove-empty-lines
html-remove-empty-lines public/
npx
With npx, you can install to your project, but it's not required.
npm install --save @ryanburnette/html-remove-empty-lines
npx html-remove-empty-lines public/
js
You can also import the htmlRemoveEmtpyLines
function to utilize it
programmatically.
var htmlRemoveEmptyLines = require('@ryanburnette/html-remove-empty-lines');
console.log(htmlRemoveEmptyLines('<html>\n\n</html>'));