{
  "name": "js-tokens",
  "url": "https://canirequire.com/package/js-tokens/",
  "description": "Tiny JavaScript tokenizer.",
  "latest": "10.0.0",
  "latestPublished": "2025-12-08T21:09:55.458Z",
  "format": "esm-only",
  "summary": "js-tokens@10.0.0 is ESM-only. js-tokens dropped its CommonJS build in 10.0.0 (December 2025). The last version you can require() on every Node.js version, including 18 and older, is 9.0.1, published Nov 22, 2024. On Node.js 20.19+, 22.12+ and every newer release, require(\"js-tokens\") 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": "10.0.0",
  "esmOnlySinceDate": "2025-12-08T21:09:55.458Z",
  "lastCommonJsVersion": "9.0.1",
  "lastCommonJsDate": "2024-11-22T17:21:10.496Z",
  "nativeEsmSince": "10.0.0",
  "types": "bundled",
  "nodeEngines": null,
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/lydell/js-tokens",
  "weeklyDownloads": 224127362,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:32.346Z",
    "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": "10.0.0",
      "format": "esm-only",
      "published": "2025-12-08T21:09:55.458Z"
    },
    {
      "version": "9.0.1",
      "format": "cjs",
      "published": "2024-11-22T17:21:10.496Z"
    },
    {
      "version": "9.0.0",
      "format": "cjs",
      "published": "2024-02-08T22:59:07.471Z"
    },
    {
      "version": "8.0.3",
      "format": "cjs",
      "published": "2024-02-03T10:12:26.165Z"
    },
    {
      "version": "8.0.2",
      "format": "cjs",
      "published": "2023-09-09T13:03:23.579Z"
    },
    {
      "version": "8.0.1",
      "format": "cjs",
      "published": "2023-01-16T21:14:53.000Z"
    },
    {
      "version": "8.0.0",
      "format": "cjs",
      "published": "2022-05-15T09:51:05.420Z"
    },
    {
      "version": "7.0.0",
      "format": "cjs",
      "published": "2021-04-25T10:03:20.082Z"
    },
    {
      "version": "6.0.0",
      "format": "cjs",
      "published": "2020-04-13T16:44:04.779Z"
    },
    {
      "version": "5.0.0",
      "format": "cjs",
      "published": "2019-06-15T14:54:25.462Z"
    },
    {
      "version": "4.0.0",
      "format": "cjs",
      "published": "2018-01-28T11:58:58.170Z"
    },
    {
      "version": "3.0.2",
      "format": "cjs",
      "published": "2017-06-28T20:54:17.623Z"
    },
    {
      "version": "3.0.1",
      "format": "cjs",
      "published": "2017-01-30T18:28:23.511Z"
    },
    {
      "version": "3.0.0",
      "format": "cjs",
      "published": "2017-01-11T20:38:15.672Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2016-06-19T07:38:11.688Z"
    },
    {
      "version": "1.0.3",
      "format": "cjs",
      "published": "2016-03-27T10:52:26.157Z"
    },
    {
      "version": "1.0.2",
      "format": "cjs",
      "published": "2015-10-18T15:00:47.347Z"
    },
    {
      "version": "1.0.1",
      "format": "cjs",
      "published": "2015-06-20T06:38:03.183Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2015-02-26T09:34:56.843Z"
    },
    {
      "version": "0.4.1",
      "format": "cjs",
      "published": "2015-02-21T20:20:20.154Z"
    },
    {
      "version": "0.4.0",
      "format": "cjs",
      "published": "2015-02-21T19:00:41.297Z"
    },
    {
      "version": "0.3.1",
      "format": "cjs",
      "published": "2015-01-06T21:17:50.696Z"
    },
    {
      "version": "0.3.0",
      "format": "cjs",
      "published": "2014-12-19T17:50:28.104Z"
    },
    {
      "version": "0.2.0",
      "format": "cjs",
      "published": "2014-06-19T20:20:22.938Z"
    },
    {
      "version": "0.1.0",
      "format": "cjs",
      "published": "2014-03-08T22:30:50.672Z"
    }
  ]
}