Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Squeezy Logo
A dead simple JavaScript and CSS validator, bundler and minifier

nimble install squeezy

API reference
Github Actions Github Actions

😍 Key Features

  • High-performance minifier built with Nim lang 👑
  • Validate, Bundle and minify CSS and JavaScript assets
  • Source map generation for JavaScript
  • Identifier mangling for JavaScript
  • Inline Minifier for HTML / CSS / JavaScript (fastest, no parsing, no validation)
  • Built on top of pkg/sweetsyntax & pkg/openparser/css

Examples

Check in the examples directory and the unit tests

Roadmap

..

Benchmarks

Comparing Squeezy vs ESBuild (on d3.js library ~ 20k lines)

  [OK] dependencies available
  [OK] build bench runner

  Output sizes:

    Original:              587043 bytes
    squeezy-inline:        420081 bytes
    squeezy-bundle:        413739 bytes
    squeezy-bundle+mangle: 360824 bytes
    esbuild:               281878 bytes
  [OK] output size comparison + save

  squeezy-inline:
    Time (mean ± σ):      13.5 ms ±   0.8 ms    [User: 10.3 ms, System: 2.1 ms]
    Range (min … max):    11.9 ms …  17.3 ms    156 runs
  squeezy-bundle:
    Time (mean ± σ):      93.7 ms ±   5.1 ms    [User: 84.0 ms, System: 7.8 ms]
    Range (min … max):    88.6 ms … 111.4 ms    31 runs
  squeezy-bundle+mangle:
    Time (mean ± σ):     102.0 ms ±   6.8 ms    [User: 91.5 ms, System: 8.7 ms]
    Range (min … max):    95.2 ms … 127.7 ms    27 runs
  esbuild:
    Time (mean ± σ):      63.9 ms ±   4.0 ms    [User: 50.8 ms, System: 14.5 ms]
    Range (min … max):    58.9 ms …  77.5 ms    39 runs
  [OK] hyperfine benchmark

❤ Contributions & Support

🎩 License

MIT license. Made by Humans from OpenPeeps.
Copyright OpenPeeps & Contributors — All rights reserved.

Releases

Packages

Contributors

Languages

Generated from openpeeps/pistachio