Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

html-uglify

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-uglify

Uglifies an HTML file and its associated CSS for compression. Great for HTML emails!

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
41
decreased by-2.38%
Maintainers
2
Weekly downloads
 
Created
Source

html-uglify

html-uglify

Uglify your HTML and CSS for purposes of compression and obfuscation. Great for HTML emails

BuildStatus NPM version

var HtmlUglify = require('html-uglify');
var htmlUglify = new HtmlUglify({salt: 'your-custom-salt'});
var uglified = htmlUglify.process(htmlString);

Installation

npm install html-uglify --save

Usage

You pass an html string to .process and it returns the uglified html.

var HtmlUglify = require('html-uglify');
var htmlUglify = new HtmlUglify({salt: 'your-custom-salt'});
var htmlString = "<html><head><style>.some-class { color: red; }</style></head><body><h1 class='some-class'>Hello</h1></body></html>";

var uglified = htmlUglify.process(htmlString);

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Running tests

npm install
npm test

Keywords

FAQs

Package last updated on 07 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc