{
  "name": "content-type",
  "url": "https://canirequire.com/package/content-type/",
  "description": "Create and parse HTTP Content-Type header",
  "latest": "3.0.0",
  "latestPublished": "2026-08-20T23:01:26.175Z",
  "format": "esm-only",
  "summary": "content-type@3.0.0 is ESM-only. content-type dropped its CommonJS build in 3.0.0 (August 2026). The last version you can require() on every Node.js version, including 18 and older, is 2.1.0, published Aug 13, 2026. On Node.js 20.19+, 22.12+ and every newer release, require(\"content-type\") works anyway: Node can load synchronous ES modules through require(). Verified on Node 22, 24, 26. Node.js 18 and older still fail with ERR_REQUIRE_ESM. content-type@3.0.0 declares engines \">=22\", so Node.js 18, 20 are outside its supported range regardless of module format.",
  "esmOnlySince": "3.0.0",
  "esmOnlySinceDate": "2026-08-20T23:01:26.175Z",
  "lastCommonJsVersion": "2.1.0",
  "lastCommonJsDate": "2026-08-13T20:32:58.206Z",
  "nativeEsmSince": "3.0.0",
  "types": "bundled",
  "nodeEngines": ">=22",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/jshttp/content-type",
  "weeklyDownloads": 191423803,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:33.795Z",
    "node": {
      "18": {
        "require": false,
        "import": true,
        "requireError": "ERR_REQUIRE_ESM",
        "importError": null
      },
      "20": {
        "require": true,
        "import": true,
        "requireError": null,
        "importError": null
      },
      "22": {
        "require": true,
        "import": true,
        "requireError": null,
        "importError": null
      },
      "24": {
        "require": true,
        "import": true,
        "requireError": null,
        "importError": null
      },
      "26": {
        "require": true,
        "import": true,
        "requireError": null,
        "importError": null
      }
    },
    "bun": {
      "require": true,
      "import": true,
      "requireError": null,
      "importError": null
    }
  },
  "formatHistory": [
    {
      "version": "3.0.0",
      "format": "esm-only",
      "published": "2026-08-20T23:01:26.175Z"
    },
    {
      "version": "2.1.0",
      "format": "cjs",
      "published": "2026-08-13T20:32:58.206Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2026-05-11T17:22:08.801Z"
    },
    {
      "version": "1.0.5",
      "format": "cjs",
      "published": "2023-01-29T19:25:59.622Z"
    },
    {
      "version": "1.0.4",
      "format": "cjs",
      "published": "2017-09-11T21:42:36.476Z"
    },
    {
      "version": "1.0.3",
      "format": "cjs",
      "published": "2017-09-11T04:44:08.721Z"
    },
    {
      "version": "1.0.2",
      "format": "cjs",
      "published": "2016-05-10T03:59:48.395Z"
    },
    {
      "version": "1.0.1",
      "format": "cjs",
      "published": "2015-02-14T00:37:57.925Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2015-02-02T07:31:29.037Z"
    },
    {
      "version": "0.0.1",
      "format": "cjs",
      "published": "2013-10-08T07:37:54.398Z"
    }
  ]
}