Skip to content

Repository files navigation

compresso

Performant utilities to quickly reduce your code size

code style

Bundle too big? Way too much code to write? Don't stress! Take a compresso!

Compresso is a quick utility library with micro-optimized utilities to reduce duplicated patterns of code while ensuring type security. Though, the utilities themselves do not throw any errors or strictly confirm param types. They are intentionally "dumb" and "primitive" to be as performant as possible.

List of utilities can be found here

Aliases

compresso has a vast amount of global aliases. Instead of writing Math.max, Array.isArray or Object.getOwnPropertyDescriptor, you can simply import the aliases like max, isArray orgetPropDescriptor. This was done because Bundlers performing name-mangling can't mangle and shorten the names of property values, leaving Math.max like they are. Modern bundlers might be able to automatically alias them, but compresso providing aliases itself can also ease developing larger algorithms.

List of aliases can be found here


@ 2026 Torathion

About

Debloat your code with a nice cup of compresso

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages