jsmin

package module
v0.0.0-...-a32d741 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2014 License: MIT Imports: 4 Imported by: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-jsmin

Douglas Crockford's JSMin in Go. Package and command. #golang

Usage

The command accepts a stream from the standard input and prints the compressed version on the standard output.

$ go get github.com/web-assets/go-jsmin/cmd/gojsmin
$ gojsmin < original.js > compressed.js

Development setup

$ mkdir -p $GOPATH/src/github.com/web-assets
$ git clone https://github.com/web-assets/go-jsmin $GOPATH/src/github.com/web-assets/go-jsmin && cd $_
$ make setup
$ make

Documentation

Overview

Package jsmin is a port of Douglas Crockford's JSMin in Go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Min

func Min(src io.Reader, dest io.Writer) error

Min minifies javascript reading from src and writing to dest

Types

This section is empty.

Directories

Path Synopsis
cmd
gojsmin command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址