{
  "name": "mime",
  "url": "https://canirequire.com/package/mime/",
  "description": "A comprehensive library for mime-type mapping",
  "latest": "4.1.0",
  "latestPublished": "2025-09-12T17:53:01.376Z",
  "format": "esm-only",
  "summary": "mime@4.1.0 is ESM-only. mime dropped its CommonJS build in 4.0.0 (November 2023). The last version you can require() on every Node.js version, including 18 and older, is 3.0.0, published Nov 3, 2021. On Node.js 20.19+, 22.12+ and every newer release, require(\"mime\") works anyway: Node can load synchronous ES modules through require(). Verified on Node 20, 22, 24, 26. Node.js 18 and older still fail with ERR_REQUIRE_ESM.",
  "esmOnlySince": "4.0.0",
  "esmOnlySinceDate": "2023-11-29T14:27:31.170Z",
  "lastCommonJsVersion": "3.0.0",
  "lastCommonJsDate": "2021-11-03T00:50:48.131Z",
  "nativeEsmSince": "4.0.0",
  "types": "bundled",
  "nodeEngines": ">=16",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/broofa/mime",
  "weeklyDownloads": 136354710,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:39.084Z",
    "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": "4.1.0",
      "format": "esm-only",
      "published": "2025-09-12T17:53:01.376Z"
    },
    {
      "version": "4.0.7",
      "format": "esm-only",
      "published": "2025-04-03T14:31:46.967Z"
    },
    {
      "version": "4.0.6",
      "format": "esm-only",
      "published": "2024-12-17T21:36:49.144Z"
    },
    {
      "version": "4.0.5",
      "format": "esm-only",
      "published": "2024-12-17T21:31:51.050Z"
    },
    {
      "version": "4.0.4",
      "format": "esm-only",
      "published": "2024-07-06T00:54:56.724Z"
    },
    {
      "version": "4.0.3",
      "format": "esm-only",
      "published": "2024-04-25T13:03:07.063Z"
    },
    {
      "version": "4.0.2",
      "format": "esm-only",
      "published": "2024-04-24T15:29:12.522Z"
    },
    {
      "version": "4.0.1",
      "format": "esm-only",
      "published": "2023-12-17T15:44:34.697Z"
    },
    {
      "version": "4.0.0",
      "format": "esm-only",
      "published": "2023-11-29T14:27:31.170Z"
    },
    {
      "version": "3.0.0",
      "format": "cjs",
      "published": "2021-11-03T00:50:48.131Z"
    },
    {
      "version": "2.6.0",
      "format": "cjs",
      "published": "2021-11-02T18:00:20.963Z"
    },
    {
      "version": "2.5.2",
      "format": "cjs",
      "published": "2021-02-17T17:58:58.345Z"
    },
    {
      "version": "2.5.0",
      "format": "cjs",
      "published": "2021-01-16T00:49:39.456Z"
    },
    {
      "version": "2.4.7",
      "format": "cjs",
      "published": "2020-12-16T02:30:50.715Z"
    },
    {
      "version": "2.4.6",
      "format": "cjs",
      "published": "2020-05-27T16:23:39.613Z"
    },
    {
      "version": "2.4.5",
      "format": "cjs",
      "published": "2020-05-01T23:10:49.282Z"
    },
    {
      "version": "2.4.4",
      "format": "cjs",
      "published": "2019-06-07T18:37:21.843Z"
    },
    {
      "version": "2.4.3",
      "format": "cjs",
      "published": "2019-05-15T14:07:40.987Z"
    },
    {
      "version": "2.4.2",
      "format": "cjs",
      "published": "2019-04-07T18:23:49.030Z"
    },
    {
      "version": "2.4.1",
      "format": "cjs",
      "published": "2019-04-03T18:51:17.186Z"
    },
    {
      "version": "2.4.0",
      "format": "cjs",
      "published": "2018-11-26T22:34:54.322Z"
    },
    {
      "version": "2.3.1",
      "format": "cjs",
      "published": "2018-04-11T13:30:15.691Z"
    },
    {
      "version": "2.3.0",
      "format": "cjs",
      "published": "2018-04-11T13:18:59.263Z"
    },
    {
      "version": "2.2.2",
      "format": "cjs",
      "published": "2018-03-30T16:42:30.335Z"
    },
    {
      "version": "2.2.1",
      "format": "cjs",
      "published": "2018-03-30T16:40:52.382Z"
    },
    {
      "version": "2.2.0",
      "format": "cjs",
      "published": "2018-01-04T22:27:28.600Z"
    },
    {
      "version": "2.1.0",
      "format": "cjs",
      "published": "2017-12-22T21:05:19.255Z"
    },
    {
      "version": "2.0.5",
      "format": "cjs",
      "published": "2017-12-22T19:22:06.502Z"
    },
    {
      "version": "2.0.3",
      "format": "cjs",
      "published": "2017-09-25T18:38:39.500Z"
    },
    {
      "version": "2.0.2",
      "format": "cjs",
      "published": "2017-09-18T11:25:54.278Z"
    },
    {
      "version": "2.0.1",
      "format": "cjs",
      "published": "2017-09-13T21:55:30.616Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2017-09-13T00:04:24.258Z"
    },
    {
      "version": "1.6.0",
      "format": "cjs",
      "published": "2017-11-25T00:53:19.104Z"
    },
    {
      "version": "1.5.0",
      "format": "cjs",
      "published": "2017-11-22T21:38:40.771Z"
    },
    {
      "version": "1.4.1",
      "format": "cjs",
      "published": "2017-09-25T18:38:29.492Z"
    },
    {
      "version": "1.4.0",
      "format": "cjs",
      "published": "2017-08-28T16:05:02.616Z"
    },
    {
      "version": "1.3.6",
      "format": "cjs",
      "published": "2017-05-12T04:59:41.167Z"
    },
    {
      "version": "1.3.5",
      "format": "cjs",
      "published": "2017-05-11T18:18:17.906Z"
    },
    {
      "version": "1.3.4",
      "format": "cjs",
      "published": "2015-02-07T00:04:32.434Z"
    },
    {
      "version": "1.3.3",
      "format": "cjs",
      "published": "2015-02-07T00:03:37.869Z"
    },
    {
      "version": "1.3.2",
      "format": "cjs",
      "published": "2015-02-05T20:21:14.114Z"
    },
    {
      "version": "1.3.0",
      "format": "cjs",
      "published": "2015-02-05T19:45:52.999Z"
    },
    {
      "version": "1.2.11",
      "format": "cjs",
      "published": "2013-08-15T17:46:51.772Z"
    },
    {
      "version": "1.2.10",
      "format": "cjs",
      "published": "2013-07-25T17:03:54.344Z"
    },
    {
      "version": "1.2.9",
      "format": "cjs",
      "published": "2013-01-17T16:59:18.360Z"
    },
    {
      "version": "1.2.8",
      "format": "cjs",
      "published": "2013-01-10T18:31:25.510Z"
    },
    {
      "version": "1.2.7",
      "format": "cjs",
      "published": "2012-07-19T22:34:29.843Z"
    },
    {
      "version": "1.2.6",
      "format": "cjs",
      "published": "2012-06-26T15:32:22.315Z"
    },
    {
      "version": "1.2.5",
      "format": "cjs",
      "published": "2012-02-16T14:14:57.547Z"
    },
    {
      "version": "1.2.4",
      "format": "cjs",
      "published": "2011-09-18T12:00:16.878Z"
    },
    {
      "version": "1.2.3",
      "format": "cjs",
      "published": "2011-09-07T13:19:46.375Z"
    },
    {
      "version": "1.2.2",
      "format": "cjs",
      "published": "2011-05-09T11:56:13.470Z"
    },
    {
      "version": "1.2.1",
      "format": "cjs",
      "published": "2011-01-20T16:27:31.008Z"
    },
    {
      "version": "1.1.0",
      "format": "cjs",
      "published": "2011-01-20T16:27:31.008Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2011-01-20T16:27:31.008Z"
    }
  ]
}