{
  "name": "cookie",
  "url": "https://canirequire.com/package/cookie/",
  "description": "HTTP server cookie parsing and serialization",
  "latest": "2.0.1",
  "latestPublished": "2026-06-30T22:15:13.965Z",
  "format": "esm-only",
  "summary": "cookie@2.0.1 is ESM-only. cookie dropped its CommonJS build in 2.0.0 (June 2026). The last version you can require() on every Node.js version, including 18 and older, is 1.1.1, published Nov 26, 2025. On Node.js 20.19+, 22.12+ and every newer release, require(\"cookie\") 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. cookie@2.0.1 declares engines \">=22\", so Node.js 18, 20 are outside its supported range regardless of module format.",
  "esmOnlySince": "2.0.0",
  "esmOnlySinceDate": "2026-06-24T22:57:43.225Z",
  "lastCommonJsVersion": "1.1.1",
  "lastCommonJsDate": "2025-11-26T17:50:20.759Z",
  "nativeEsmSince": "2.0.0",
  "types": "definitely-typed",
  "nodeEngines": ">=22",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/jshttp/cookie",
  "weeklyDownloads": 185104135,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:34.204Z",
    "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": "2.0.1",
      "format": "esm-only",
      "published": "2026-06-30T22:15:13.965Z"
    },
    {
      "version": "2.0.0",
      "format": "esm-only",
      "published": "2026-06-24T22:57:43.225Z"
    },
    {
      "version": "1.1.1",
      "format": "cjs",
      "published": "2025-11-26T17:50:20.759Z"
    },
    {
      "version": "1.1.0",
      "format": "cjs",
      "published": "2025-11-25T22:52:36.316Z"
    },
    {
      "version": "1.0.2",
      "format": "cjs",
      "published": "2024-11-20T17:39:47.758Z"
    },
    {
      "version": "1.0.1",
      "format": "cjs",
      "published": "2024-10-11T17:18:35.310Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2024-10-08T22:25:01.600Z"
    },
    {
      "version": "0.7.2",
      "format": "cjs",
      "published": "2024-10-07T03:41:28.828Z"
    },
    {
      "version": "0.7.1",
      "format": "cjs",
      "published": "2024-10-03T18:17:17.990Z"
    },
    {
      "version": "0.7.0",
      "format": "cjs",
      "published": "2024-10-02T23:06:25.847Z"
    },
    {
      "version": "0.6.0",
      "format": "cjs",
      "published": "2023-11-07T05:01:09.857Z"
    },
    {
      "version": "0.5.0",
      "format": "cjs",
      "published": "2022-04-11T23:31:57.179Z"
    },
    {
      "version": "0.4.2",
      "format": "cjs",
      "published": "2022-02-02T23:29:30.095Z"
    },
    {
      "version": "0.4.1",
      "format": "cjs",
      "published": "2020-04-22T03:23:57.297Z"
    },
    {
      "version": "0.4.0",
      "format": "cjs",
      "published": "2019-05-16T03:26:07.333Z"
    },
    {
      "version": "0.3.1",
      "format": "cjs",
      "published": "2016-05-27T04:32:39.156Z"
    },
    {
      "version": "0.3.0",
      "format": "cjs",
      "published": "2016-05-27T01:00:41.646Z"
    },
    {
      "version": "0.2.4",
      "format": "cjs",
      "published": "2016-05-21T00:32:45.246Z"
    },
    {
      "version": "0.2.3",
      "format": "cjs",
      "published": "2015-10-26T01:02:06.233Z"
    },
    {
      "version": "0.2.2",
      "format": "cjs",
      "published": "2015-09-17T20:40:15.826Z"
    },
    {
      "version": "0.2.1",
      "format": "cjs",
      "published": "2015-09-17T17:08:41.911Z"
    },
    {
      "version": "0.2.0",
      "format": "cjs",
      "published": "2015-08-14T05:15:35.455Z"
    },
    {
      "version": "0.1.5",
      "format": "cjs",
      "published": "2015-09-17T18:52:10.481Z"
    },
    {
      "version": "0.1.4",
      "format": "cjs",
      "published": "2015-09-17T17:03:42.289Z"
    },
    {
      "version": "0.1.3",
      "format": "cjs",
      "published": "2015-05-20T01:22:20.719Z"
    },
    {
      "version": "0.1.2",
      "format": "cjs",
      "published": "2014-04-16T23:00:21.566Z"
    },
    {
      "version": "0.1.1",
      "format": "cjs",
      "published": "2014-02-23T15:56:33.086Z"
    },
    {
      "version": "0.1.0",
      "format": "cjs",
      "published": "2013-05-01T19:18:22.075Z"
    },
    {
      "version": "0.0.6",
      "format": "cjs",
      "published": "2013-04-09T05:59:56.056Z"
    },
    {
      "version": "0.0.5",
      "format": "cjs",
      "published": "2012-10-29T17:26:30.049Z"
    },
    {
      "version": "0.0.4",
      "format": "cjs",
      "published": "2012-06-21T16:27:06.621Z"
    },
    {
      "version": "0.0.3",
      "format": "cjs",
      "published": "2012-06-06T18:50:00.041Z"
    },
    {
      "version": "0.0.2",
      "format": "cjs",
      "published": "2012-06-01T17:57:58.161Z"
    },
    {
      "version": "0.0.1",
      "format": "cjs",
      "published": "2012-05-29T02:15:56.897Z"
    },
    {
      "version": "0.0.0",
      "format": "cjs",
      "published": "2012-05-28T23:56:12.299Z"
    }
  ]
}