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

@voliware/node-minify-transform

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

@voliware/node-minify-transform

Minify JS, CSS, and HTML in a stream using a transform and node-minify

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

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

node-minify-transform

Minify JS, CSS, and HTML in a stream using a transform and node-minify

Install

npm install @voliware/node-minify-transform

Use

Require

const Fs = require('fs');
const MinifyTransform = require('@voliware/node-minify-transform');

JS

let readable = Fs.createReadable("app.js");
let writable = Fs.createWritable("app.min.js");
let transform = new MinifyTransform("js");
readable.pipe(transform).pipe(writable);

CSS

let readable = Fs.createReadable("style.css");
let writable = Fs.createWritable("style.min.css");
let transform = new MinifyTransform("css");
readable.pipe(transform).pipe(writable);

HTML

let readable = Fs.createReadable("index.html");
let writable = Fs.createWritable("index.min.html");
let transform = new MinifyTransform("html");
readable.pipe(transform).pipe(writable);

Keywords

FAQs

Package last updated on 04 Mar 2020

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