svg

package
v0.0.0-...-c5bcced Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

The minify/svg package minifies svg content.

var lib = require('minify/svg');
var out = lib.minify(data)
console.log(out);

It is also possible to minify svg data directly from a reader.

var lib = require('minify/svg');
var dec = lib.decoder(context.req.body);
var out = dec.string();
console.log(out);

It is also possible to minify svg data directly to a writer.

var lib = require('minify/svg');
var enc = lib.encoder(context.res.body);
enc.write(data);

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(orb *orbit.Orbit) interface{}

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

func (*Module) Minify

func (this *Module) Minify(src interface{}) (out string)

func (*Module) Reader

func (this *Module) Reader(r io.Reader) *stream.Reader

func (*Module) Writer

func (this *Module) Writer(w io.Writer) *stream.WriteCloser

Jump to

Keyboard shortcuts

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