{
  "name": "class-transformer",
  "url": "https://canirequire.com/package/class-transformer/",
  "description": "Proper decorator-based transformation / serialization / deserialization of plain javascript objects to class constructors",
  "latest": "0.5.1",
  "latestPublished": "2021-11-22T19:04:09.677Z",
  "format": "cjs",
  "summary": "class-transformer@0.5.1 is a CommonJS package. class-transformer ships CommonJS only. require(\"class-transformer\") works everywhere. import \"class-transformer\" 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. It also declares a \"module\" field, so bundlers such as webpack, Vite and esbuild pick up an ESM build for tree-shaking.",
  "esmOnlySince": null,
  "esmOnlySinceDate": null,
  "lastCommonJsVersion": "0.5.1",
  "lastCommonJsDate": "2021-11-22T19:04:09.677Z",
  "nativeEsmSince": null,
  "types": "bundled",
  "nodeEngines": null,
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/typestack/class-transformer",
  "weeklyDownloads": 11251433,
  "runtime": {
    "verifiedAt": "2026-09-09T15:29:06.349Z",
    "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": "0.5.1",
      "format": "cjs",
      "published": "2021-11-22T19:04:09.677Z"
    },
    {
      "version": "0.5.0",
      "format": "cjs",
      "published": "2021-11-20T15:17:35.333Z"
    },
    {
      "version": "0.4.1",
      "format": "cjs",
      "published": "2021-11-20T14:55:23.134Z"
    },
    {
      "version": "0.4.0",
      "format": "cjs",
      "published": "2021-02-14T15:26:22.616Z"
    },
    {
      "version": "0.3.2",
      "format": "cjs",
      "published": "2021-01-14T06:03:30.768Z"
    },
    {
      "version": "0.3.1",
      "format": "cjs",
      "published": "2020-07-29T22:09:18.147Z"
    },
    {
      "version": "0.2.3",
      "format": "cjs",
      "published": "2019-05-20T20:05:01.156Z"
    },
    {
      "version": "0.2.2",
      "format": "cjs",
      "published": "2019-05-08T00:30:25.264Z"
    },
    {
      "version": "0.2.1",
      "format": "cjs",
      "published": "2019-05-07T22:05:30.768Z"
    },
    {
      "version": "0.2.0",
      "format": "cjs",
      "published": "2018-11-04T19:06:48.719Z"
    },
    {
      "version": "0.1.10",
      "format": "cjs",
      "published": "2018-10-17T09:35:40.364Z"
    },
    {
      "version": "0.1.9",
      "format": "cjs",
      "published": "2018-02-04T14:04:49.399Z"
    },
    {
      "version": "0.1.8",
      "format": "cjs",
      "published": "2017-10-03T09:41:59.335Z"
    },
    {
      "version": "0.1.7",
      "format": "cjs",
      "published": "2017-06-27T13:55:55.147Z"
    },
    {
      "version": "0.1.6",
      "format": "cjs",
      "published": "2017-01-18T10:54:43.598Z"
    },
    {
      "version": "0.1.5",
      "format": "cjs",
      "published": "2017-01-18T10:30:38.027Z"
    },
    {
      "version": "0.1.4",
      "format": "cjs",
      "published": "2017-01-12T17:52:02.764Z"
    },
    {
      "version": "0.1.3",
      "format": "cjs",
      "published": "2016-12-01T11:28:45.137Z"
    },
    {
      "version": "0.1.2",
      "format": "cjs",
      "published": "2016-10-22T09:41:52.160Z"
    },
    {
      "version": "0.1.1",
      "format": "cjs",
      "published": "2016-08-02T12:21:35.658Z"
    },
    {
      "version": "0.1.0",
      "format": "cjs",
      "published": "2016-07-28T19:03:24.601Z"
    }
  ]
}