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

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

Jump to

Keyboard shortcuts

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