1.1.6 • Published 4 years ago

@ryanburnette/html-remove-empty-lines v1.1.6

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

html-remove-empty-lines

repo npm

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>'));
1.1.6

4 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago