2.0.18 • Published 5 years ago

compressible v2.0.18

Weekly downloads
11,443,588
License
MIT
Repository
github
Last release
5 years ago

compressible

NPM Version NPM Downloads Node.js Version Build Status Test Coverage

Compressible Content-Type / mime checking.

Installation

$ npm install compressible

API

var compressible = require('compressible')

compressible(type)

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 if there is compressible information in the database entry, that is returned. Otherwise, this module will fallback to true for the following types:

  • text/*
  • */*+json
  • */*+text
  • */*+xml

If this module is not sure if a type is specifically compressible or specifically uncompressible, undefined is returned.

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

License

MIT

compressioncomponennentteasy-select-rn@nickcherry/nickjsvuedragdropuploadimagesreact-native-bluetooth2killi8n-react-native-fast-imagern-send-smsnetease-cloudmusic-api-node13react-native-template-rfbaseairscanairscan-examplebb-chatreact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxfdeneme323112@texttree/demo-bsa-reference-rcl@ntt_app/react-native-custom-notificationreact-native-custom-text-hwjamesreact-native-covid-sdkreact-native-thanh-toast-library@thanhnguyen14797/react-native-thanh-toast-library@l1nyanm1ng/react-picture-viewer@xornot/sparrowcthpb-plugin-socialreact-native-printer-brothersrn-pdf-reader-offlinereact-native-shekhar-bridge-test@sdv/shrink-raylevibestliblevibestlib2levilibtest19levilibtest24levilibtest25levilibtest26levilibtest27levilibtest28levilibtest29wilscanner@oiti/documentoscopy-react-nativequoc-testreact-native-slider-kf@infinitebrahmanuniverse/nolb-comprcclibyarntest@saaspe/componentshyperpass-sdkluminos-ui-coresklif-ui-kitsklif-api@everything-registry/sub-chunk-1368jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgp149-tablesklif-uireact-native-jawwy_samplegriffin-ui-library@wacoco/ytaman-baca-masyarakattanngotest-carosello-campustest-library-123test-haptik-libtest-npm-jjmessivue-button-test1webdatabasetest1webdatabasetest10webdesa-laravel-final-releasewebpack_component_fundwescheme-jswordpress-rest-adminwp-pwawifi_configuration_packages3-upload-statics3uploadrn-tm-notifyrn-use-modal-hookrn-currency-formatterrn-counter-demorn-session-multiplier-demorn_unique_device_idrnttlockshanshainasharingcomponent2sf-web-componentssamc2samc3samc4samc5sam-carouselresponsis-gantt-task-reactreactnativelyreactofy-css-libraryrn-check-btnrn-circular-chart
2.0.18

5 years ago

2.0.17

6 years ago

2.0.16

6 years ago

2.0.15

6 years ago

2.0.14

6 years ago

2.0.13

7 years ago

2.0.12

7 years ago

2.0.11

7 years ago

2.0.10

8 years ago

2.0.9

8 years ago

2.0.8

9 years ago

2.0.7

9 years ago

2.0.6

9 years ago

2.0.5

9 years ago

2.0.4

9 years ago

2.0.3

9 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.1

11 years ago

1.0.0

11 years ago

0.2.0

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago