{
  "name": "p-locate",
  "url": "https://canirequire.com/package/p-locate/",
  "description": "Get the first fulfilled promise that satisfies the provided testing function",
  "latest": "7.0.0",
  "latestPublished": "2026-02-03T07:57:49.916Z",
  "format": "esm-only",
  "summary": "p-locate@7.0.0 is ESM-only. p-locate dropped its CommonJS build in 6.0.0 (August 2021). The last version you can require() on every Node.js version, including 18 and older, is 5.0.0, published Aug 10, 2020. On Node.js 20.19+, 22.12+ and every newer release, require(\"p-locate\") 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. p-locate@7.0.0 declares engines \">=20\", so Node.js 18 is outside its supported range regardless of module format.",
  "esmOnlySince": "6.0.0",
  "esmOnlySinceDate": "2021-08-25T11:56:43.294Z",
  "lastCommonJsVersion": "5.0.0",
  "lastCommonJsDate": "2020-08-10T17:42:34.692Z",
  "nativeEsmSince": "6.0.0",
  "types": "bundled",
  "nodeEngines": ">=20",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/sindresorhus/p-locate",
  "weeklyDownloads": 216902418,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:32.711Z",
    "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": "7.0.0",
      "format": "esm-only",
      "published": "2026-02-03T07:57:49.916Z"
    },
    {
      "version": "6.0.0",
      "format": "esm-only",
      "published": "2021-08-25T11:56:43.294Z"
    },
    {
      "version": "5.0.0",
      "format": "cjs",
      "published": "2020-08-10T17:42:34.692Z"
    },
    {
      "version": "4.1.0",
      "format": "cjs",
      "published": "2019-04-04T05:02:46.111Z"
    },
    {
      "version": "4.0.0",
      "format": "cjs",
      "published": "2019-03-12T09:46:24.520Z"
    },
    {
      "version": "3.0.0",
      "format": "cjs",
      "published": "2018-06-15T12:47:57.897Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2016-11-28T05:25:21.460Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2016-11-20T10:07:34.210Z"
    }
  ]
}