@ryanburnette/html-remove-empty-lines

1.1.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @ryanburnette/html-remove-empty-lines

Weekly Downloads

17

Version

1.1.6

License

ISC

Unpacked Size

4 kB

Total Files

10

Last publish

Collaborators

  • ryanburnette