{
  "name": "rewire",
  "url": "https://canirequire.com/package/rewire/",
  "description": "Easy dependency injection for node.js unit testing",
  "latest": "9.0.1",
  "latestPublished": "2025-08-15T20:18:41.095Z",
  "format": "cjs",
  "summary": "rewire@9.0.1 is a CommonJS package. rewire ships CommonJS only. require(\"rewire\") works everywhere. import \"rewire\" 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": "9.0.1",
  "lastCommonJsDate": "2025-08-15T20:18:41.095Z",
  "nativeEsmSince": null,
  "types": "definitely-typed",
  "nodeEngines": null,
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/jhnns/rewire",
  "weeklyDownloads": 369158,
  "runtime": {
    "verifiedAt": "2026-09-09T15:32:31.009Z",
    "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": "9.0.1",
      "format": "cjs",
      "published": "2025-08-15T20:18:41.095Z"
    },
    {
      "version": "9.0.0",
      "format": "cjs",
      "published": "2025-07-08T23:13:06.429Z"
    },
    {
      "version": "8.0.0",
      "format": "cjs",
      "published": "2025-06-03T22:46:37.260Z"
    },
    {
      "version": "7.0.0",
      "format": "cjs",
      "published": "2023-08-13T20:42:16.074Z"
    },
    {
      "version": "6.0.0",
      "format": "cjs",
      "published": "2021-12-19T00:38:56.460Z"
    },
    {
      "version": "5.0.0",
      "format": "cjs",
      "published": "2020-03-11T10:02:40.316Z"
    },
    {
      "version": "4.0.1",
      "format": "cjs",
      "published": "2018-04-24T11:36:11.625Z"
    },
    {
      "version": "4.0.0",
      "format": "cjs",
      "published": "2018-04-09T23:13:09.933Z"
    },
    {
      "version": "3.0.2",
      "format": "cjs",
      "published": "2017-11-20T15:00:42.757Z"
    },
    {
      "version": "3.0.1",
      "format": "cjs",
      "published": "2017-11-15T14:55:25.781Z"
    },
    {
      "version": "3.0.0",
      "format": "cjs",
      "published": "2017-11-11T02:51:29.389Z"
    },
    {
      "version": "2.5.2",
      "format": "cjs",
      "published": "2016-07-01T10:40:51.161Z"
    },
    {
      "version": "2.5.1",
      "format": "cjs",
      "published": "2015-11-30T22:39:40.207Z"
    },
    {
      "version": "2.5.0",
      "format": "cjs",
      "published": "2015-11-15T21:07:17.372Z"
    },
    {
      "version": "2.4.0",
      "format": "cjs",
      "published": "2015-11-07T16:16:52.718Z"
    },
    {
      "version": "2.3.4",
      "format": "cjs",
      "published": "2015-06-10T11:57:53.434Z"
    },
    {
      "version": "2.3.3",
      "format": "cjs",
      "published": "2015-04-27T22:48:57.863Z"
    },
    {
      "version": "2.3.2",
      "format": "cjs",
      "published": "2015-04-27T22:19:53.779Z"
    },
    {
      "version": "2.3.1",
      "format": "cjs",
      "published": "2015-02-23T00:50:31.747Z"
    },
    {
      "version": "2.3.0",
      "format": "cjs",
      "published": "2015-02-17T00:18:20.910Z"
    },
    {
      "version": "2.2.0",
      "format": "cjs",
      "published": "2015-02-09T23:03:17.999Z"
    },
    {
      "version": "2.1.5",
      "format": "cjs",
      "published": "2015-02-05T20:36:05.053Z"
    },
    {
      "version": "2.1.4",
      "format": "cjs",
      "published": "2015-01-17T16:08:09.445Z"
    },
    {
      "version": "2.1.3",
      "format": "cjs",
      "published": "2014-11-04T08:54:55.977Z"
    },
    {
      "version": "2.1.2",
      "format": "cjs",
      "published": "2014-10-29T00:07:04.974Z"
    },
    {
      "version": "2.1.1",
      "format": "cjs",
      "published": "2014-10-28T00:54:52.634Z"
    },
    {
      "version": "2.1.0",
      "format": "cjs",
      "published": "2014-07-11T11:41:50.210Z"
    },
    {
      "version": "2.0.1",
      "format": "cjs",
      "published": "2014-05-20T11:34:46.008Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2013-09-30T22:57:32.302Z"
    },
    {
      "version": "1.1.3",
      "format": "cjs",
      "published": "2013-04-16T13:06:14.249Z"
    },
    {
      "version": "1.1.2",
      "format": "cjs",
      "published": "2013-03-13T01:29:41.940Z"
    },
    {
      "version": "1.1.1",
      "format": "cjs",
      "published": "2013-03-02T15:46:14.264Z"
    },
    {
      "version": "1.1.0",
      "format": "cjs",
      "published": "2013-02-23T16:08:24.975Z"
    },
    {
      "version": "1.0.4",
      "format": "cjs",
      "published": "2013-02-12T14:28:28.485Z"
    },
    {
      "version": "1.0.3",
      "format": "cjs",
      "published": "2012-09-25T13:03:25.224Z"
    },
    {
      "version": "1.0.2",
      "format": "cjs",
      "published": "2012-09-18T17:08:29.540Z"
    },
    {
      "version": "1.0.1",
      "format": "cjs",
      "published": "2012-09-15T19:28:59.924Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2012-08-20T01:03:53.257Z"
    },
    {
      "version": "0.3.2",
      "format": "cjs",
      "published": "2012-07-10T18:34:16.216Z"
    },
    {
      "version": "0.3.1",
      "format": "cjs",
      "published": "2012-07-03T01:23:59.829Z"
    },
    {
      "version": "0.3.0",
      "format": "cjs",
      "published": "2012-06-23T14:37:40.156Z"
    },
    {
      "version": "0.2.2",
      "format": "cjs",
      "published": "2012-06-18T17:02:09.077Z"
    },
    {
      "version": "0.2.1",
      "format": "cjs",
      "published": "2012-06-15T14:32:02.198Z"
    },
    {
      "version": "0.2.0",
      "format": "cjs",
      "published": "2012-06-11T21:34:55.441Z"
    },
    {
      "version": "0.1.3",
      "format": "cjs",
      "published": "2012-06-06T00:31:34.082Z"
    },
    {
      "version": "0.1.2",
      "format": "cjs",
      "published": "2012-06-05T14:58:00.921Z"
    },
    {
      "version": "0.1.1",
      "format": "cjs",
      "published": "2012-06-04T12:47:22.631Z"
    },
    {
      "version": "0.1.0",
      "format": "cjs",
      "published": "2012-06-04T01:16:38.374Z"
    }
  ]
}