cssfmt

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(w io.Writer, r io.Reader, args []string, opts Options) error

Run formats CSS input

func RunMinify

func RunMinify(w io.Writer, r io.Reader, args []string, opts Options) error

RunMinify minifies CSS

func RunValidate

func RunValidate(w io.Writer, r io.Reader, args []string, opts ValidateOptions) error

RunValidate validates CSS syntax

Types

type Options

type Options struct {
	Indent    string // Indentation (default: "  ")
	Minify    bool   // Minify output
	SortProps bool   // Sort properties alphabetically
	SortRules bool   // Sort selectors alphabetically
}

Options configures the CSS formatter

type ValidateOptions

type ValidateOptions struct {
	JSON bool // Output as JSON
}

ValidateOptions configures CSS validation

type ValidateResult

type ValidateResult = pkgcss.ValidateResult

ValidateResult is an alias for the pkg type

Jump to

Keyboard shortcuts

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