{
  "name": "serialize-javascript",
  "url": "https://canirequire.com/package/serialize-javascript/",
  "description": "Serialize JavaScript to a superset of JSON that includes regular expressions and functions.",
  "latest": "7.1.1",
  "latestPublished": "2026-08-29T13:50:28.545Z",
  "format": "cjs",
  "summary": "serialize-javascript@7.1.1 is a CommonJS package. serialize-javascript ships CommonJS only. require(\"serialize-javascript\") works everywhere. import \"serialize-javascript\" 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": "7.1.1",
  "lastCommonJsDate": "2026-08-29T13:50:28.545Z",
  "nativeEsmSince": null,
  "types": "definitely-typed",
  "nodeEngines": ">=20.0.0",
  "deprecated": null,
  "license": "BSD-3-Clause",
  "repository": "https://github.com/yahoo/serialize-javascript",
  "weeklyDownloads": 43587293,
  "runtime": {
    "verifiedAt": "2026-09-09T15:28:22.272Z",
    "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": "7.1.1",
      "format": "cjs",
      "published": "2026-08-29T13:50:28.545Z"
    },
    {
      "version": "7.1.0",
      "format": "cjs",
      "published": "2026-08-08T03:04:32.004Z"
    },
    {
      "version": "7.0.7",
      "format": "cjs",
      "published": "2026-06-30T12:19:18.656Z"
    },
    {
      "version": "7.0.6",
      "format": "cjs",
      "published": "2026-06-17T23:58:27.617Z"
    },
    {
      "version": "7.0.5",
      "format": "cjs",
      "published": "2026-03-25T14:24:36.784Z"
    },
    {
      "version": "7.0.4",
      "format": "cjs",
      "published": "2026-03-02T23:26:22.004Z"
    },
    {
      "version": "7.0.3",
      "format": "cjs",
      "published": "2026-02-27T14:38:27.472Z"
    },
    {
      "version": "7.0.2",
      "format": "cjs",
      "published": "2025-12-07T13:27:05.336Z"
    },
    {
      "version": "7.0.1",
      "format": "cjs",
      "published": "2025-11-28T13:31:49.090Z"
    },
    {
      "version": "7.0.0",
      "format": "cjs",
      "published": "2025-10-04T12:54:59.367Z"
    },
    {
      "version": "6.0.2",
      "format": "cjs",
      "published": "2024-01-09T01:06:31.243Z"
    },
    {
      "version": "6.0.1",
      "format": "cjs",
      "published": "2023-01-15T14:34:51.198Z"
    },
    {
      "version": "6.0.0",
      "format": "cjs",
      "published": "2021-06-21T14:01:20.180Z"
    },
    {
      "version": "5.0.1",
      "format": "cjs",
      "published": "2020-09-10T12:53:19.493Z"
    },
    {
      "version": "5.0.0",
      "format": "cjs",
      "published": "2020-09-09T12:32:59.915Z"
    },
    {
      "version": "4.0.0",
      "format": "cjs",
      "published": "2020-06-08T13:40:07.872Z"
    },
    {
      "version": "3.1.0",
      "format": "cjs",
      "published": "2020-05-28T11:37:37.428Z"
    },
    {
      "version": "3.0.0",
      "format": "cjs",
      "published": "2020-02-16T13:39:50.439Z"
    },
    {
      "version": "2.1.2",
      "format": "cjs",
      "published": "2019-12-09T09:19:49.684Z"
    },
    {
      "version": "2.1.1",
      "format": "cjs",
      "published": "2019-12-05T09:40:44.147Z"
    },
    {
      "version": "2.1.0",
      "format": "cjs",
      "published": "2019-09-04T12:33:56.686Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2019-09-04T12:09:08.164Z"
    },
    {
      "version": "1.9.1",
      "format": "cjs",
      "published": "2019-09-04T12:07:59.446Z"
    },
    {
      "version": "1.9.0",
      "format": "cjs",
      "published": "2019-08-29T12:37:59.194Z"
    },
    {
      "version": "1.8.0",
      "format": "cjs",
      "published": "2019-08-20T12:51:32.602Z"
    },
    {
      "version": "1.7.0",
      "format": "cjs",
      "published": "2019-04-16T12:19:59.867Z"
    },
    {
      "version": "1.6.1",
      "format": "cjs",
      "published": "2018-12-28T07:34:50.243Z"
    },
    {
      "version": "1.6.0",
      "format": "cjs",
      "published": "2018-12-24T14:33:58.691Z"
    },
    {
      "version": "1.5.0",
      "format": "cjs",
      "published": "2018-04-18T00:08:05.129Z"
    },
    {
      "version": "1.4.0",
      "format": "cjs",
      "published": "2017-07-15T12:46:27.325Z"
    },
    {
      "version": "1.3.0",
      "format": "cjs",
      "published": "2016-05-31T21:52:40.550Z"
    },
    {
      "version": "1.2.0",
      "format": "cjs",
      "published": "2016-02-29T23:35:46.071Z"
    },
    {
      "version": "1.1.2",
      "format": "cjs",
      "published": "2015-09-09T16:59:59.027Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2014-09-16T16:06:10.211Z"
    }
  ]
}