{
  "name": "string.prototype.trim",
  "url": "https://canirequire.com/package/string.prototype.trim/",
  "description": "ES5 spec-compliant shim for String.prototype.trim",
  "latest": "1.2.11",
  "latestPublished": "2026-06-05T22:55:28.966Z",
  "format": "cjs",
  "summary": "string.prototype.trim@1.2.11 is a CommonJS package. string.prototype.trim ships CommonJS only. require(\"string.prototype.trim\") works everywhere. import \"string.prototype.trim\" also works because Node.js and Bun can import CommonJS from ES modules, but only the default export is guaranteed; named imports depend on Node's static analysis of the module.",
  "esmOnlySince": null,
  "esmOnlySinceDate": null,
  "lastCommonJsVersion": "1.2.11",
  "lastCommonJsDate": "2026-06-05T22:55:28.966Z",
  "nativeEsmSince": null,
  "types": "definitely-typed",
  "nodeEngines": ">= 0.4",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/es-shims/String.prototype.trim",
  "weeklyDownloads": 75780099,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:56.855Z",
    "node": {
      "18": {
        "require": true,
        "import": true,
        "requireError": null,
        "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": "1.2.11",
      "format": "cjs",
      "published": "2026-06-05T22:55:28.966Z"
    },
    {
      "version": "1.2.10",
      "format": "cjs",
      "published": "2024-12-11T19:24:15.549Z"
    },
    {
      "version": "1.2.9",
      "format": "cjs",
      "published": "2024-03-17T06:37:04.247Z"
    },
    {
      "version": "1.2.8",
      "format": "cjs",
      "published": "2023-09-07T17:07:16.812Z"
    },
    {
      "version": "1.2.7",
      "format": "cjs",
      "published": "2022-11-07T19:04:12.734Z"
    },
    {
      "version": "1.2.6",
      "format": "cjs",
      "published": "2022-04-24T22:22:50.953Z"
    },
    {
      "version": "1.2.5",
      "format": "cjs",
      "published": "2021-10-04T05:33:59.526Z"
    },
    {
      "version": "1.2.4",
      "format": "cjs",
      "published": "2021-02-21T22:24:02.499Z"
    },
    {
      "version": "1.2.3",
      "format": "cjs",
      "published": "2020-11-21T22:55:15.015Z"
    },
    {
      "version": "1.2.2",
      "format": "cjs",
      "published": "2020-09-15T22:55:28.024Z"
    },
    {
      "version": "1.2.1",
      "format": "cjs",
      "published": "2019-12-16T18:41:13.566Z"
    },
    {
      "version": "1.2.0",
      "format": "cjs",
      "published": "2019-07-24T18:31:14.196Z"
    },
    {
      "version": "1.1.2",
      "format": "cjs",
      "published": "2016-02-06T09:37:24.527Z"
    },
    {
      "version": "1.1.1",
      "format": "cjs",
      "published": "2015-08-16T20:03:04.222Z"
    },
    {
      "version": "1.1.0",
      "format": "cjs",
      "published": "2015-08-16T08:08:55.784Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2015-08-09T06:07:46.418Z"
    }
  ]
}