{
  "name": "read-pkg",
  "url": "https://canirequire.com/package/read-pkg/",
  "description": "Read a package.json file",
  "latest": "10.1.0",
  "latestPublished": "2026-02-08T14:30:34.915Z",
  "format": "esm-only",
  "summary": "read-pkg@10.1.0 is ESM-only. read-pkg dropped its CommonJS build in 6.0.0 (March 2021). The last version you can require() on every Node.js version, including 18 and older, is 5.2.0, published Jul 11, 2019. On Node.js 20.19+, 22.12+ and every newer release, require(\"read-pkg\") 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. read-pkg@10.1.0 declares engines \">=20\", so Node.js 18 is outside its supported range regardless of module format.",
  "esmOnlySince": "6.0.0",
  "esmOnlySinceDate": "2021-03-28T07:02:22.982Z",
  "lastCommonJsVersion": "5.2.0",
  "lastCommonJsDate": "2019-07-11T08:30:48.441Z",
  "nativeEsmSince": "6.0.0",
  "types": "bundled",
  "nodeEngines": ">=20",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/sindresorhus/read-pkg",
  "weeklyDownloads": 36824153,
  "runtime": {
    "verifiedAt": "2026-09-09T15:28:33.319Z",
    "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": "10.1.0",
      "format": "esm-only",
      "published": "2026-02-08T14:30:34.915Z"
    },
    {
      "version": "10.0.0",
      "format": "esm-only",
      "published": "2025-11-07T18:07:21.696Z"
    },
    {
      "version": "9.0.1",
      "format": "esm-only",
      "published": "2023-11-16T08:39:25.244Z"
    },
    {
      "version": "9.0.0",
      "format": "esm-only",
      "published": "2023-11-02T19:21:50.347Z"
    },
    {
      "version": "8.1.0",
      "format": "esm-only",
      "published": "2023-08-22T16:26:03.107Z"
    },
    {
      "version": "8.0.0",
      "format": "esm-only",
      "published": "2023-04-07T05:32:47.529Z"
    },
    {
      "version": "7.1.0",
      "format": "esm-only",
      "published": "2022-02-08T06:32:10.789Z"
    },
    {
      "version": "7.0.0",
      "format": "esm-only",
      "published": "2021-08-14T23:43:06.233Z"
    },
    {
      "version": "6.0.0",
      "format": "esm-only",
      "published": "2021-03-28T07:02:22.982Z"
    },
    {
      "version": "5.2.0",
      "format": "cjs",
      "published": "2019-07-11T08:30:48.441Z"
    },
    {
      "version": "5.1.1",
      "format": "cjs",
      "published": "2019-04-27T10:27:59.808Z"
    },
    {
      "version": "5.1.0",
      "format": "cjs",
      "published": "2019-04-24T04:03:19.376Z"
    },
    {
      "version": "5.0.0",
      "format": "cjs",
      "published": "2019-03-10T11:37:24.281Z"
    },
    {
      "version": "4.0.1",
      "format": "cjs",
      "published": "2018-06-26T04:10:59.370Z"
    },
    {
      "version": "4.0.0",
      "format": "cjs",
      "published": "2018-06-25T16:06:30.381Z"
    },
    {
      "version": "3.0.0",
      "format": "cjs",
      "published": "2017-11-04T08:07:32.640Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2016-09-28T08:44:31.441Z"
    },
    {
      "version": "1.1.0",
      "format": "cjs",
      "published": "2015-09-05T09:51:50.133Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2015-09-02T08:47:51.680Z"
    }
  ]
}