{
  "name": "path-type",
  "url": "https://canirequire.com/package/path-type/",
  "description": "Check if a path is a file, directory, or symlink",
  "latest": "6.0.0",
  "latestPublished": "2024-07-26T10:54:40.007Z",
  "format": "esm-only",
  "summary": "path-type@6.0.0 is ESM-only. path-type dropped its CommonJS build in 5.0.0 (January 2021). The last version you can require() on every Node.js version, including 18 and older, is 4.0.0, published Mar 12, 2019. On Node.js 20.19+, 22.12+ and every newer release, require(\"path-type\") 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": "5.0.0",
  "esmOnlySinceDate": "2021-01-27T12:52:38.113Z",
  "lastCommonJsVersion": "4.0.0",
  "lastCommonJsDate": "2019-03-12T09:25:18.333Z",
  "nativeEsmSince": "5.0.0",
  "types": "bundled",
  "nodeEngines": ">=18",
  "deprecated": null,
  "license": "MIT",
  "repository": "https://github.com/sindresorhus/path-type",
  "weeklyDownloads": 89882204,
  "runtime": {
    "verifiedAt": "2026-09-09T15:27:49.972Z",
    "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": "6.0.0",
      "format": "esm-only",
      "published": "2024-07-26T10:54:40.007Z"
    },
    {
      "version": "5.0.0",
      "format": "esm-only",
      "published": "2021-01-27T12:52:38.113Z"
    },
    {
      "version": "4.0.0",
      "format": "cjs",
      "published": "2019-03-12T09:25:18.333Z"
    },
    {
      "version": "3.0.0",
      "format": "cjs",
      "published": "2017-07-08T23:00:58.771Z"
    },
    {
      "version": "2.0.0",
      "format": "cjs",
      "published": "2016-09-28T08:28:37.085Z"
    },
    {
      "version": "1.1.0",
      "format": "cjs",
      "published": "2015-11-14T19:39:01.645Z"
    },
    {
      "version": "1.0.0",
      "format": "cjs",
      "published": "2015-09-04T08:35:55.517Z"
    }
  ]
}