Skip to content

ryanburnette/html-remove-empty-lines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published