{
  "name": "content-disposition",
  "url": "https://canirequire.com/package/content-disposition/",
  "description": "Create and parse Content-Disposition header",
  "latest": "3.0.0",
  "latestPublished": "2026-08-13T20:29:16.841Z",
  "format": "esm-only",
  "summary": "content-disposition@3.0.0 is ESM-only. content-disposition 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.0.1, published May 28, 2026. On Node.js 20.19+, 22.12+ and every newer release, require(\"content-disposition\") 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-disposition@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-13T20:29:16.841Z",
  "lastCommonJsVersion": "2.0.1",
  "lastCommonJsDate": "2026-05-28T02:54:30.497Z",
  "nativeEsmSince": "3.0.0",
  "types": "bundled",
  "nodeEngines": ">=22",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/jshttp/content-disposition",
  "weeklyDownloads": 127786113,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:40.229Z",
    "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-13T20:29:16.841Z"
    },
    {
      "version": "2.0.1",
      "format": "cjs",
      "published": "2026-05-28T02:54:30.497Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2026-05-11T16:26:18.261Z"
    },
    {
      "version": "1.1.0",
      "format": "cjs",
      "published": "2026-04-07T21:07:53.748Z"
    },
    {
      "version": "1.0.1",
      "format": "cjs",
      "published": "2025-11-18T14:59:36.214Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2024-08-31T18:06:17.899Z"
    },
    {
      "version": "0.5.4",
      "format": "cjs",
      "published": "2021-12-10T22:55:34.663Z"
    },
    {
      "version": "0.5.3",
      "format": "cjs",
      "published": "2018-12-17T20:18:52.643Z"
    },
    {
      "version": "0.5.2",
      "format": "cjs",
      "published": "2016-12-09T01:17:05.156Z"
    },
    {
      "version": "0.5.1",
      "format": "cjs",
      "published": "2016-01-17T21:02:33.711Z"
    },
    {
      "version": "0.5.0",
      "format": "cjs",
      "published": "2014-10-11T22:06:03.045Z"
    },
    {
      "version": "0.4.0",
      "format": "cjs",
      "published": "2014-10-11T22:03:04.039Z"
    },
    {
      "version": "0.3.0",
      "format": "cjs",
      "published": "2014-09-21T00:36:24.194Z"
    },
    {
      "version": "0.2.0",
      "format": "cjs",
      "published": "2014-09-20T07:26:06.901Z"
    },
    {
      "version": "0.1.2",
      "format": "cjs",
      "published": "2014-09-20T07:27:06.106Z"
    },
    {
      "version": "0.1.1",
      "format": "cjs",
      "published": "2014-09-19T15:11:29.395Z"
    },
    {
      "version": "0.1.0",
      "format": "cjs",
      "published": "2014-09-19T05:39:30.525Z"
    },
    {
      "version": "0.0.0",
      "format": "cjs",
      "published": "2014-09-19T05:02:12.936Z"
    }
  ]
}