{"id":19019384,"url":"https://github.com/jshttp/compressible","last_synced_at":"2025-05-16T14:07:00.156Z","repository":{"id":12626797,"uuid":"15298067","full_name":"jshttp/compressible","owner":"jshttp","description":"Compressible Content-Type / mime checking.","archived":false,"fork":false,"pushed_at":"2024-04-09T19:35:44.000Z","size":145,"stargazers_count":100,"open_issues_count":3,"forks_count":14,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-05-12T17:17:46.066Z","etag":null,"topics":["compressible","javascript","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jshttp.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-12-19T00:48:32.000Z","updated_at":"2025-03-12T15:13:29.000Z","dependencies_parsed_at":"2024-06-18T12:37:56.171Z","dependency_job_id":"4d5f639b-37fa-4fef-8331-886b62bdc019","html_url":"https://github.com/jshttp/compressible","commit_stats":{"total_commits":346,"total_committers":3,"mean_commits":"115.33333333333333","dds":0.2283236994219653,"last_synced_commit":"89b61014fb82f0c64b42acef12d161dee48fb58e"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jshttp%2Fcompressible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jshttp%2Fcompressible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jshttp%2Fcompressible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jshttp%2Fcompressible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jshttp","download_url":"https://codeload.github.com/jshttp/compressible/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254035518,"owners_count":22003574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compressible","javascript","nodejs"],"created_at":"2024-11-08T20:12:14.477Z","updated_at":"2025-05-16T14:07:00.136Z","avatar_url":"https://github.com/jshttp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# compressible\n\n[![NPM Version][npm-version-image]][npm-url]\n[![NPM Downloads][npm-downloads-image]][npm-url]\n[![Node.js Version][node-version-image]][node-version-url]\n[![Build Status][ci-image]][ci-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n\nCompressible `Content-Type` / `mime` checking.\n\n## Installation\n\n```sh\n$ npm install compressible\n```\n\n## API\n\n```js\nvar compressible = require('compressible')\n```\n\n### compressible(type)\n\nChecks if the given `Content-Type` is compressible. The `type` argument is expected\nto be a value MIME type or `Content-Type` string, though no validation is performed.\n\nThe MIME is looked up in the [`mime-db`](https://www.npmjs.com/package/mime-db) and\nif there is compressible information in the database entry, that is returned. Otherwise,\nthis module will fallback to `true` for the following types:\n\n  * `text/*`\n  * `*/*+json`\n  * `*/*+text`\n  * `*/*+xml`\n\nIf this module is not sure if a type is specifically compressible or specifically\nuncompressible, `undefined` is returned.\n\n```js\ncompressible('text/html') // =\u003e true\ncompressible('image/png') // =\u003e false\n```\n\n## License\n\n[MIT](LICENSE)\n\n[ci-image]: https://badgen.net/github/checks/jshttp/compressible/master?label=ci\n[ci-url]: https://github.com/jshttp/compressible/actions?query=workflow%3Aci\n[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/compressible/master\n[coveralls-url]: https://coveralls.io/r/jshttp/compressible?branch=master\n[node-version-image]: https://badgen.net/npm/node/compressible\n[node-version-url]: https://nodejs.org/en/download\n[npm-downloads-image]: https://badgen.net/npm/dm/compressible\n[npm-url]: https://npmjs.org/package/compressible\n[npm-version-image]: https://badgen.net/npm/v/compressible\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjshttp%2Fcompressible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjshttp%2Fcompressible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjshttp%2Fcompressible/lists"}