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

github.com/syhv-git/minifier

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/syhv-git/minifier

  • v0.0.0-20220924203609-21465d9ae7e8
  • Source
  • Go
  • Socket score

Version published
Created
Source

minifier

This package implements a Minifier for tdewolff's Minify project. The Minifier takes three parameters, the output dest., the mime type, and the paths to minify. The package will create a new file at the dest. containing the minified program files.

The Minifier performs a recursive walk on directories provided in the variadac string parameter. All files are read into memory and after all paths have been walked, the contents are minified and written to the output file.

The minifier will ignore the destination file if it exists in the tree being enumerated

The Minifier will not throw an error when handling multiple mime types per call (but your projects will ;)

Usage

Run the following command from your project directory

go get -u github.com/syhv-git/minifier

You can then import and use the package with the minifier.Minifier() function.

FAQs

Package last updated on 24 Sep 2022

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