New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gobble-html-minifier

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gobble-html-minifier

Use html-minifier with gobble

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

gobble-html-minifer

npm Build Status Coverage Status Dependencies

Simple wrapper to use html-minifier with gobble.

Installation

First, you need to have gobble installed - see the gobble readme for details. Then,

npm install --save-dev gobble-html-minifier

Usage

gobblefile.js

var gobble = require('gobble');

module.exports = gobble('src').transform('html-minifier', options);

The options argument, if specified, is passed to html-minifier. Please refer to the original documentation.

There is one extra option preset in this plugin to try to make developer's life easier.

preset

Type: string|undefined

The preset option accepts one of three string value: "minimal", "safe", and "all". They correspond to the presets found on html-minifier's Github page. If left undefined or when set to unsupported value, it doesn't affect other options at all. Otherwise, the preset options act as the default and other options passed in overrides the preset.

Usage
// to use the "minimal" preset alone
gobble('src').transform('html-minifier', { preset: 'minimal' });

// use the "minimal" preset but turn off "removeComments"
gobble('src').transform('html-minifier', {
  preset: 'minimal',
  removeComments: false,
});

Keywords

FAQs

Package last updated on 06 Dec 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