{
  "name": "htmlparser2",
  "url": "https://canirequire.com/package/htmlparser2/",
  "description": "Fast & forgiving HTML/XML parser",
  "latest": "12.0.0",
  "latestPublished": "2026-03-20T23:08:39.985Z",
  "format": "esm-only",
  "summary": "htmlparser2@12.0.0 is ESM-only. htmlparser2 dropped its CommonJS build in 11.0.0 (March 2026). The last version you can require() on every Node.js version, including 18 and older, is 10.1.0, published Jan 21, 2026. On Node.js 20.19+, 22.12+ and every newer release, require(\"htmlparser2\") 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. htmlparser2@12.0.0 declares engines \">=20.19.0\", so Node.js 18 is outside its supported range regardless of module format.",
  "esmOnlySince": "11.0.0",
  "esmOnlySinceDate": "2026-03-19T11:22:25.892Z",
  "lastCommonJsVersion": "10.1.0",
  "lastCommonJsDate": "2026-01-21T14:18:32.889Z",
  "nativeEsmSince": "8.0.0",
  "types": "bundled",
  "nodeEngines": ">=20.19.0",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/fb55/htmlparser2",
  "weeklyDownloads": 64701039,
  "runtime": {
    "verifiedAt": "2026-09-09T15:28:04.128Z",
    "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": "12.0.0",
      "format": "esm-only",
      "published": "2026-03-20T23:08:39.985Z"
    },
    {
      "version": "11.0.0",
      "format": "esm-only",
      "published": "2026-03-19T11:22:25.892Z"
    },
    {
      "version": "10.1.0",
      "format": "dual",
      "published": "2026-01-21T14:18:32.889Z"
    },
    {
      "version": "10.0.0",
      "format": "dual",
      "published": "2024-12-24T10:48:38.846Z"
    },
    {
      "version": "9.1.0",
      "format": "dual",
      "published": "2024-01-05T11:04:08.039Z"
    },
    {
      "version": "9.0.0",
      "format": "dual",
      "published": "2023-05-10T08:55:53.962Z"
    },
    {
      "version": "8.0.2",
      "format": "dual",
      "published": "2023-03-22T23:36:11.745Z"
    },
    {
      "version": "8.0.1",
      "format": "dual",
      "published": "2022-04-29T15:43:48.277Z"
    },
    {
      "version": "8.0.0",
      "format": "dual",
      "published": "2022-04-23T11:44:39.014Z"
    },
    {
      "version": "7.2.0",
      "format": "cjs",
      "published": "2021-11-11T14:26:59.137Z"
    },
    {
      "version": "7.1.2",
      "format": "cjs",
      "published": "2021-09-11T18:50:37.500Z"
    },
    {
      "version": "7.1.1",
      "format": "cjs",
      "published": "2021-08-29T13:10:40.072Z"
    },
    {
      "version": "7.1.0",
      "format": "cjs",
      "published": "2021-08-27T23:40:47.669Z"
    },
    {
      "version": "7.0.0",
      "format": "cjs",
      "published": "2021-08-20T19:59:23.845Z"
    },
    {
      "version": "6.1.0",
      "format": "cjs",
      "published": "2021-04-08T20:46:58.818Z"
    },
    {
      "version": "6.0.1",
      "format": "cjs",
      "published": "2021-03-07T19:21:52.666Z"
    },
    {
      "version": "6.0.0",
      "format": "cjs",
      "published": "2020-12-08T02:54:19.015Z"
    },
    {
      "version": "5.0.1",
      "format": "cjs",
      "published": "2020-10-25T23:52:15.567Z"
    },
    {
      "version": "5.0.0",
      "format": "cjs",
      "published": "2020-10-03T21:46:21.193Z"
    },
    {
      "version": "4.1.0",
      "format": "cjs",
      "published": "2020-02-23T01:29:08.356Z"
    },
    {
      "version": "4.0.0",
      "format": "cjs",
      "published": "2019-08-02T19:15:11.713Z"
    },
    {
      "version": "3.10.1",
      "format": "cjs",
      "published": "2019-02-14T18:16:50.770Z"
    },
    {
      "version": "3.10.0",
      "format": "cjs",
      "published": "2018-10-21T21:08:32.152Z"
    },
    {
      "version": "3.9.2",
      "format": "cjs",
      "published": "2016-10-18T11:33:38.610Z"
    },
    {
      "version": "3.9.1",
      "format": "cjs",
      "published": "2016-06-12T01:03:29.186Z"
    },
    {
      "version": "3.9.0",
      "format": "cjs",
      "published": "2015-12-01T17:03:17.549Z"
    },
    {
      "version": "3.8.3",
      "format": "cjs",
      "published": "2015-06-05T09:17:14.127Z"
    },
    {
      "version": "3.8.2",
      "format": "cjs",
      "published": "2014-11-04T23:46:52.976Z"
    },
    {
      "version": "3.8.1",
      "format": "cjs",
      "published": "2014-11-04T19:02:03.871Z"
    },
    {
      "version": "3.8.0",
      "format": "cjs",
      "published": "2014-10-22T18:57:00.379Z"
    },
    {
      "version": "3.7.3",
      "format": "cjs",
      "published": "2014-07-09T16:12:12.716Z"
    },
    {
      "version": "3.7.2",
      "format": "cjs",
      "published": "2014-05-19T08:12:56.000Z"
    },
    {
      "version": "3.7.1",
      "format": "cjs",
      "published": "2014-03-22T11:19:32.428Z"
    },
    {
      "version": "3.7.0",
      "format": "cjs",
      "published": "2014-03-17T20:37:14.862Z"
    },
    {
      "version": "3.6.0",
      "format": "cjs",
      "published": "2014-03-15T09:46:09.155Z"
    },
    {
      "version": "3.5.1",
      "format": "cjs",
      "published": "2014-02-25T21:06:24.133Z"
    },
    {
      "version": "3.5.0",
      "format": "cjs",
      "published": "2014-02-14T20:17:45.477Z"
    },
    {
      "version": "3.4.0",
      "format": "cjs",
      "published": "2013-12-12T14:18:18.558Z"
    },
    {
      "version": "3.3.0",
      "format": "cjs",
      "published": "2013-09-04T15:01:30.355Z"
    },
    {
      "version": "3.2.5",
      "format": "cjs",
      "published": "2013-08-30T17:23:55.324Z"
    },
    {
      "version": "3.2.4",
      "format": "cjs",
      "published": "2013-08-29T09:34:15.978Z"
    },
    {
      "version": "3.2.3",
      "format": "cjs",
      "published": "2013-08-18T20:23:40.788Z"
    },
    {
      "version": "3.2.2",
      "format": "cjs",
      "published": "2013-08-18T17:58:57.243Z"
    },
    {
      "version": "3.2.1",
      "format": "cjs",
      "published": "2013-08-18T17:31:31.492Z"
    },
    {
      "version": "3.2.0",
      "format": "cjs",
      "published": "2013-08-18T11:18:37.675Z"
    },
    {
      "version": "3.1.6",
      "format": "cjs",
      "published": "2013-08-02T15:02:14.842Z"
    },
    {
      "version": "3.1.5",
      "format": "cjs",
      "published": "2013-07-21T19:02:44.196Z"
    },
    {
      "version": "3.1.4",
      "format": "cjs",
      "published": "2013-06-23T09:36:39.587Z"
    },
    {
      "version": "3.1.3",
      "format": "cjs",
      "published": "2013-06-14T12:10:39.518Z"
    },
    {
      "version": "3.1.2",
      "format": "cjs",
      "published": "2013-06-09T13:05:01.361Z"
    },
    {
      "version": "3.1.1",
      "format": "cjs",
      "published": "2013-06-05T14:57:40.240Z"
    },
    {
      "version": "3.0.5",
      "format": "cjs",
      "published": "2013-04-15T14:07:50.178Z"
    },
    {
      "version": "3.0.4",
      "format": "cjs",
      "published": "2013-04-15T13:55:28.983Z"
    },
    {
      "version": "3.0.3",
      "format": "cjs",
      "published": "2013-04-09T08:41:44.906Z"
    },
    {
      "version": "3.0.2",
      "format": "cjs",
      "published": "2013-04-04T11:33:33.863Z"
    },
    {
      "version": "3.0.1",
      "format": "cjs",
      "published": "2013-04-04T11:06:05.986Z"
    },
    {
      "version": "3.0.0",
      "format": "cjs",
      "published": "2013-03-31T20:34:43.530Z"
    },
    {
      "version": "2.6.0",
      "format": "cjs",
      "published": "2013-03-17T22:16:03.210Z"
    },
    {
      "version": "2.5.2",
      "format": "cjs",
      "published": "2013-02-15T12:50:42.045Z"
    },
    {
      "version": "2.5.1",
      "format": "cjs",
      "published": "2013-01-09T14:48:45.369Z"
    }
  ]
}