{
  "name": "strip-json-comments",
  "url": "https://canirequire.com/package/strip-json-comments/",
  "description": "Strip comments from JSON. Lets you use comments in your JSON files!",
  "latest": "5.0.3",
  "latestPublished": "2025-08-08T14:14:05.044Z",
  "format": "esm-only",
  "summary": "strip-json-comments@5.0.3 is ESM-only. strip-json-comments 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.1, published Jul 12, 2020. On Node.js 20.19+, 22.12+ and every newer release, require(\"strip-json-comments\") 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-19T18:10:16.697Z",
  "lastCommonJsVersion": "3.1.1",
  "lastCommonJsDate": "2020-07-12T14:44:56.568Z",
  "nativeEsmSince": "4.0.0",
  "types": "bundled",
  "nodeEngines": ">=14.16",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/sindresorhus/strip-json-comments",
  "weeklyDownloads": 185395178,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:34.061Z",
    "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": "5.0.3",
      "format": "esm-only",
      "published": "2025-08-08T14:14:05.044Z"
    },
    {
      "version": "5.0.2",
      "format": "esm-only",
      "published": "2025-05-16T20:47:21.731Z"
    },
    {
      "version": "5.0.1",
      "format": "esm-only",
      "published": "2023-07-04T11:22:44.178Z"
    },
    {
      "version": "5.0.0",
      "format": "esm-only",
      "published": "2022-07-22T09:48:13.708Z"
    },
    {
      "version": "4.0.0",
      "format": "esm-only",
      "published": "2021-08-19T18:10:16.697Z"
    },
    {
      "version": "3.1.1",
      "format": "cjs",
      "published": "2020-07-12T14:44:56.568Z"
    },
    {
      "version": "3.1.0",
      "format": "cjs",
      "published": "2020-04-06T07:58:47.761Z"
    },
    {
      "version": "3.0.1",
      "format": "cjs",
      "published": "2019-04-30T17:11:19.115Z"
    },
    {
      "version": "3.0.0",
      "format": "cjs",
      "published": "2019-04-30T12:23:05.813Z"
    },
    {
      "version": "2.0.1",
      "format": "cjs",
      "published": "2016-02-09T08:30:06.455Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2015-11-18T14:23:05.438Z"
    },
    {
      "version": "1.0.4",
      "format": "cjs",
      "published": "2015-08-02T00:37:05.861Z"
    },
    {
      "version": "1.0.3",
      "format": "cjs",
      "published": "2015-08-01T01:15:27.783Z"
    },
    {
      "version": "1.0.2",
      "format": "cjs",
      "published": "2014-10-16T13:25:20.301Z"
    },
    {
      "version": "1.0.1",
      "format": "cjs",
      "published": "2014-07-26T00:34:50.278Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2014-07-26T00:26:03.567Z"
    },
    {
      "version": "0.1.3",
      "format": "cjs",
      "published": "2014-05-28T10:38:42.692Z"
    },
    {
      "version": "0.1.2",
      "format": "cjs",
      "published": "2014-04-29T19:52:43.968Z"
    },
    {
      "version": "0.1.1",
      "format": "cjs",
      "published": "2013-11-17T15:22:21.059Z"
    },
    {
      "version": "0.1.0",
      "format": "cjs",
      "published": "2013-11-17T15:19:07.474Z"
    }
  ]
}