{
  "name": "nanoid",
  "url": "https://canirequire.com/package/nanoid/",
  "description": "A tiny (118 bytes), secure URL-friendly unique string ID generator",
  "latest": "6.0.1",
  "latestPublished": "2026-08-03T10:59:07.795Z",
  "format": "esm-only",
  "summary": "nanoid@6.0.1 is ESM-only. nanoid dropped its CommonJS build in 4.0.0 (June 2022). The last version you can require() on every Node.js version, including 18 and older, is 3.3.18, published Aug 7, 2026. On Node.js 20.19+, 22.12+ and every newer release, require(\"nanoid\") 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. nanoid@6.0.1 declares engines \"^22 || ^24 || >=26\", so Node.js 18, 20 are outside its supported range regardless of module format.",
  "esmOnlySince": "4.0.0",
  "esmOnlySinceDate": "2022-06-08T08:11:03.937Z",
  "lastCommonJsVersion": "3.3.18",
  "lastCommonJsDate": "2026-08-07T16:41:05.696Z",
  "nativeEsmSince": "3.0.0",
  "types": "bundled",
  "nodeEngines": "^22 || ^24 || >=26",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/ai/nanoid",
  "weeklyDownloads": 214341426,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:32.752Z",
    "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": "6.0.1",
      "format": "esm-only",
      "published": "2026-08-03T10:59:07.795Z"
    },
    {
      "version": "6.0.0",
      "format": "esm-only",
      "published": "2026-07-12T15:11:38.825Z"
    },
    {
      "version": "5.1.16",
      "format": "esm-only",
      "published": "2026-06-24T18:37:08.221Z"
    },
    {
      "version": "5.1.15",
      "format": "esm-only",
      "published": "2026-06-20T13:40:26.507Z"
    },
    {
      "version": "5.1.14",
      "format": "esm-only",
      "published": "2026-06-18T19:17:35.781Z"
    },
    {
      "version": "5.1.13",
      "format": "esm-only",
      "published": "2026-06-18T19:03:50.423Z"
    },
    {
      "version": "5.1.12",
      "format": "esm-only",
      "published": "2026-06-18T18:34:00.962Z"
    },
    {
      "version": "5.1.11",
      "format": "esm-only",
      "published": "2026-04-30T22:06:42.984Z"
    },
    {
      "version": "5.1.10",
      "format": "esm-only",
      "published": "2026-04-30T20:48:48.545Z"
    },
    {
      "version": "5.1.9",
      "format": "esm-only",
      "published": "2026-04-15T14:10:13.862Z"
    },
    {
      "version": "5.1.8",
      "format": "esm-only",
      "published": "2026-04-15T14:07:59.978Z"
    },
    {
      "version": "5.1.7",
      "format": "esm-only",
      "published": "2026-03-15T20:13:16.293Z"
    },
    {
      "version": "5.1.6",
      "format": "esm-only",
      "published": "2025-09-22T09:45:52.703Z"
    },
    {
      "version": "5.1.5",
      "format": "esm-only",
      "published": "2025-03-18T23:09:23.726Z"
    },
    {
      "version": "5.1.4",
      "format": "esm-only",
      "published": "2025-03-15T21:36:50.628Z"
    },
    {
      "version": "5.1.3",
      "format": "esm-only",
      "published": "2025-03-07T11:33:06.062Z"
    },
    {
      "version": "5.1.2",
      "format": "esm-only",
      "published": "2025-02-22T19:48:08.428Z"
    },
    {
      "version": "5.1.1",
      "format": "esm-only",
      "published": "2025-02-22T19:47:19.495Z"
    },
    {
      "version": "5.1.0",
      "format": "esm-only",
      "published": "2025-02-14T21:03:19.902Z"
    },
    {
      "version": "5.0.9",
      "format": "esm-only",
      "published": "2024-11-26T11:59:53.257Z"
    },
    {
      "version": "5.0.8",
      "format": "esm-only",
      "published": "2024-10-28T11:29:13.535Z"
    },
    {
      "version": "5.0.7",
      "format": "esm-only",
      "published": "2024-04-07T16:44:04.485Z"
    },
    {
      "version": "5.0.6",
      "format": "esm-only",
      "published": "2024-02-20T13:56:46.276Z"
    },
    {
      "version": "5.0.5",
      "format": "esm-only",
      "published": "2024-02-01T20:07:26.003Z"
    },
    {
      "version": "5.0.4",
      "format": "esm-only",
      "published": "2023-12-02T03:12:20.236Z"
    },
    {
      "version": "5.0.3",
      "format": "esm-only",
      "published": "2023-11-06T05:22:15.512Z"
    },
    {
      "version": "5.0.2",
      "format": "esm-only",
      "published": "2023-10-15T12:13:02.180Z"
    },
    {
      "version": "5.0.1",
      "format": "esm-only",
      "published": "2023-09-12T19:54:29.732Z"
    },
    {
      "version": "5.0.0",
      "format": "esm-only",
      "published": "2023-09-12T19:41:14.218Z"
    },
    {
      "version": "4.0.2",
      "format": "esm-only",
      "published": "2023-03-26T12:45:14.776Z"
    },
    {
      "version": "4.0.1",
      "format": "esm-only",
      "published": "2023-02-05T11:53:45.668Z"
    },
    {
      "version": "4.0.0",
      "format": "esm-only",
      "published": "2022-06-08T08:11:03.937Z"
    },
    {
      "version": "3.3.18",
      "format": "dual",
      "published": "2026-08-07T16:41:05.696Z"
    },
    {
      "version": "3.3.17",
      "format": "dual",
      "published": "2026-08-03T10:39:22.487Z"
    },
    {
      "version": "3.3.16",
      "format": "dual",
      "published": "2026-07-12T08:23:40.690Z"
    },
    {
      "version": "3.3.15",
      "format": "dual",
      "published": "2026-06-21T21:23:58.804Z"
    },
    {
      "version": "3.3.14",
      "format": "dual",
      "published": "2026-06-20T13:37:57.016Z"
    },
    {
      "version": "3.3.13",
      "format": "dual",
      "published": "2026-06-18T17:29:52.482Z"
    },
    {
      "version": "3.3.12",
      "format": "dual",
      "published": "2026-04-30T22:04:14.515Z"
    },
    {
      "version": "3.3.11",
      "format": "dual",
      "published": "2025-03-18T23:06:32.923Z"
    },
    {
      "version": "3.3.10",
      "format": "dual",
      "published": "2025-03-15T21:33:24.346Z"
    },
    {
      "version": "3.3.9",
      "format": "dual",
      "published": "2025-03-07T11:26:19.120Z"
    },
    {
      "version": "3.3.8",
      "format": "dual",
      "published": "2024-11-26T11:55:05.967Z"
    },
    {
      "version": "3.3.7",
      "format": "dual",
      "published": "2023-11-06T05:15:31.557Z"
    },
    {
      "version": "3.3.6",
      "format": "dual",
      "published": "2023-03-26T12:49:44.868Z"
    },
    {
      "version": "3.3.5",
      "format": "cjs",
      "published": "2023-03-26T12:48:16.594Z"
    },
    {
      "version": "3.3.4",
      "format": "dual",
      "published": "2022-05-03T10:57:17.542Z"
    },
    {
      "version": "3.3.3",
      "format": "dual",
      "published": "2022-04-18T10:29:43.960Z"
    },
    {
      "version": "3.3.2",
      "format": "dual",
      "published": "2022-03-28T03:26:26.989Z"
    },
    {
      "version": "3.3.1",
      "format": "dual",
      "published": "2022-02-16T22:22:08.836Z"
    },
    {
      "version": "3.3.0",
      "format": "dual",
      "published": "2022-02-14T20:37:00.990Z"
    },
    {
      "version": "3.2.0",
      "format": "dual",
      "published": "2022-01-16T14:38:04.669Z"
    },
    {
      "version": "3.1.32",
      "format": "dual",
      "published": "2022-01-12T09:50:51.916Z"
    },
    {
      "version": "3.1.31",
      "format": "dual",
      "published": "2022-01-11T13:41:05.583Z"
    },
    {
      "version": "3.1.30",
      "format": "dual",
      "published": "2021-10-13T23:00:51.003Z"
    },
    {
      "version": "3.1.29",
      "format": "dual",
      "published": "2021-10-05T21:04:25.179Z"
    },
    {
      "version": "3.1.28",
      "format": "dual",
      "published": "2021-09-26T08:26:56.420Z"
    },
    {
      "version": "3.1.27",
      "format": "cjs",
      "published": "2021-09-26T08:21:22.378Z"
    },
    {
      "version": "3.1.26",
      "format": "dual",
      "published": "2021-09-26T07:23:34.453Z"
    },
    {
      "version": "3.1.25",
      "format": "dual",
      "published": "2021-08-12T12:37:59.889Z"
    }
  ]
}