{
  "name": "onetime",
  "url": "https://canirequire.com/package/onetime/",
  "description": "Ensure a function is only called once",
  "latest": "8.0.0",
  "latestPublished": "2026-02-02T07:42:24.047Z",
  "format": "esm-only",
  "summary": "onetime@8.0.0 is ESM-only. onetime dropped its CommonJS build in 6.0.0 (April 2021). The last version you can require() on every Node.js version, including 18 and older, is 5.1.2, published Aug 9, 2020. On Node.js 20.19+, 22.12+ and every newer release, require(\"onetime\") 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. onetime@8.0.0 declares engines \">=22\", so Node.js 18, 20 are outside its supported range regardless of module format.",
  "esmOnlySince": "6.0.0",
  "esmOnlySinceDate": "2021-04-08T13:48:04.866Z",
  "lastCommonJsVersion": "5.1.2",
  "lastCommonJsDate": "2020-08-09T20:29:04.963Z",
  "nativeEsmSince": "6.0.0",
  "types": "bundled",
  "nodeEngines": ">=22",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/sindresorhus/onetime",
  "weeklyDownloads": 162339186,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:35.853Z",
    "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": "8.0.0",
      "format": "esm-only",
      "published": "2026-02-02T07:42:24.047Z"
    },
    {
      "version": "7.0.0",
      "format": "esm-only",
      "published": "2023-11-05T20:42:03.405Z"
    },
    {
      "version": "6.0.0",
      "format": "esm-only",
      "published": "2021-04-08T13:48:04.866Z"
    },
    {
      "version": "5.1.2",
      "format": "cjs",
      "published": "2020-08-09T20:29:04.963Z"
    },
    {
      "version": "5.1.1",
      "format": "cjs",
      "published": "2020-08-02T10:28:50.856Z"
    },
    {
      "version": "5.1.0",
      "format": "cjs",
      "published": "2019-04-02T02:39:48.168Z"
    },
    {
      "version": "5.0.0",
      "format": "cjs",
      "published": "2019-03-08T05:58:33.472Z"
    },
    {
      "version": "4.0.0",
      "format": "cjs",
      "published": "2019-03-01T09:15:21.375Z"
    },
    {
      "version": "3.0.0",
      "format": "cjs",
      "published": "2019-01-20T15:38:13.275Z"
    },
    {
      "version": "2.0.1",
      "format": "cjs",
      "published": "2017-03-20T03:24:17.619Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2016-10-19T18:41:56.004Z"
    },
    {
      "version": "1.1.0",
      "format": "cjs",
      "published": "2015-12-18T00:30:55.390Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2014-08-13T17:03:51.426Z"
    },
    {
      "version": "0.1.1",
      "format": "cjs",
      "published": "2014-04-30T22:39:14.004Z"
    },
    {
      "version": "0.1.0",
      "format": "cjs",
      "published": "2013-12-13T21:20:18.951Z"
    }
  ]
}