Compressible
compressible
Compressible
Content-Type/mime
checking
Sweet and simple module that Checks if the given Content-Type
is compressible.
The type argument is expected to be a value MIME
type or Content-Type
string, though no validation is performed.
The MIME
is looked up in the mime-db
and supports:
- text/*
- /+json
- /+text
- /+xml
Get it: npm install --save compressible
Sample usage:
1 2 3 4 5 6 7 |
|
GIF FTW!