MCPcopy
hub / github.com/tdewolff/minify / Minify

Function Minify

js/js.go:35–37  ·  view source on GitHub ↗

Minify minifies JS data, it reads from r and writes to w.

(m *minify.M, w io.Writer, r io.Reader, params map[string]string)

Source from the content-addressed store, hash-verified

33
34// Minify minifies JS data, it reads from r and writes to w.
35func Minify(m *minify.M, w io.Writer, r io.Reader, params map[string]string) error {
36 return (&Minifier{}).Minify(m, w, r, params)
37}
38
39// Minify minifies JS data, it reads from r and writes to w.
40func (o *Minifier) Minify(_ *minify.M, w io.Writer, r io.Reader, params map[string]string) error {

Callers 4

FuzzFunction · 0.92
TestReaderErrorFunction · 0.70
TestWriterErrorFunction · 0.70
BenchmarkJQueryFunction · 0.70

Calls 1

MinifyMethod · 0.65

Tested by 3

TestReaderErrorFunction · 0.56
TestWriterErrorFunction · 0.56
BenchmarkJQueryFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…