Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 2, 2024 via pnpm

compressible 2.0.18

Compressible Content-Type / mime checking
Package summary
Share
0
issues
1
license
2
MIT
Package created
19 Dec 2013
Version published
6 Jan 2020
Maintainers
3
Total deps
2
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
compressible@2.0.18
mime-db@1.52.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of compressible 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
mime-db1.52.026.36 kBMIT
prod

Visualizations

Frequently Asked Questions

What does compressible do?

Compressible is an essential npm package for working with Content-Type or mime types. Its primary purpose is to check if a given Content-Type is compressible. The package makes use of the mime-db, a comprehensive database featuring compressible information. Furthermore, if a type's compressibility isn't recognizably definitive, Compressible will return undefined.

How do you use compressible?

To use the Compressible npm package, you should first ensure its successful installation in your project via the command:

$ npm install compressible

After that you can start using it by requiring it in your JavaScript file:

var compressible = require('compressible')

The package provides a compressible function that you can use to check if a given Content-Type is compressible. The function takes a type argument, which should be a MIME type or Content-Type string:

compressible('text/html') // => true
compressible('image/png') // => false

In the above example, 'text/html' is compressible, so the function returns true, while 'image/png' is not compressible, and so false is returned.

Where are the compressible docs?

The Compressible documentation, or docs, can be found directly within the npm package page here, which also directly links it to its associated GitHub repository. The README file on the npm and GitHub page contains the basic details necessary to understand its installation and usage. For more detailed information, you could delve into the source code, available at https://github.com/jshttp/compressible.