{
  "name": "leven",
  "url": "https://canirequire.com/package/leven/",
  "description": "Measure the difference between two strings using the Levenshtein distance algorithm",
  "latest": "4.1.0",
  "latestPublished": "2025-09-11T12:27:52.301Z",
  "format": "esm-only",
  "summary": "leven@4.1.0 is ESM-only. leven dropped its CommonJS build in 4.0.0 (August 2021). The last version you can require() on every Node.js version, including 18 and older, is 3.1.0, published Apr 4, 2019. On Node.js 20.19+, 22.12+ and every newer release, require(\"leven\") 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": "2021-08-10T12:17:03.365Z",
  "lastCommonJsVersion": "3.1.0",
  "lastCommonJsDate": "2019-04-04T04:55:27.958Z",
  "nativeEsmSince": "4.0.0",
  "types": "bundled",
  "nodeEngines": "^12.20.0 || ^14.13.1 || >=16.0.0",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/sindresorhus/leven",
  "weeklyDownloads": 57460287,
  "runtime": {
    "verifiedAt": "2026-09-09T15:28:08.767Z",
    "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-11T12:27:52.301Z"
    },
    {
      "version": "4.0.0",
      "format": "esm-only",
      "published": "2021-08-10T12:17:03.365Z"
    },
    {
      "version": "3.1.0",
      "format": "cjs",
      "published": "2019-04-04T04:55:27.958Z"
    },
    {
      "version": "3.0.0",
      "format": "cjs",
      "published": "2019-03-12T06:00:52.366Z"
    },
    {
      "version": "2.1.0",
      "format": "cjs",
      "published": "2017-02-18T08:16:38.032Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2015-09-07T08:47:31.501Z"
    },
    {
      "version": "1.0.2",
      "format": "cjs",
      "published": "2015-05-16T03:31:53.449Z"
    },
    {
      "version": "1.0.1",
      "format": "cjs",
      "published": "2014-10-07T17:23:37.460Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2014-08-09T20:36:43.382Z"
    }
  ]
}