{
  "_id": "@dual-bundle/import-meta-resolve",
  "maintainers": [
    {
      "name": "jounqin",
      "email": "admin@1stg.me"
    }
  ],
  "keywords": [
    "esm",
    "module",
    "node",
    "resolve"
  ],
  "dist-tags": {
    "latest": "4.2.1"
  },
  "author": {
    "name": "Titus Wormer",
    "email": "tituswormer@gmail.com",
    "url": "https://wooorm.com"
  },
  "_rev": "4-acaa2b3646ae9569dbff158367f39e91",
  "description": "A fork of `import-meta-resolve` with commonjs + ESM support at the same time, AKA dual package.",
  "readme": "# `@dual-bundle/import-meta-resolve`\n\nA fork of [`import-meta-resolve`](https://github.com/wooorm/import-meta-resolve)\nwith commonjs + ESM support at the same time, AKA dual package.\n\nIt will rebase and try to release in order to sync with the upstream every day,\nsee [.github/workflows/rebase.yml](.github/workflows/rebase.yml) for details.\n\n## Installation\n\n```bash\n# npm\nnpm install @dual-bundle/import-meta-resolve\n\n# yarn\nyarn add @dual-bundle/import-meta-resolve\n```\n\n***\n\n# import-meta-resolve\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n\nResolve things like Node.js.\n\n## Contents\n\n* [What is this?](#what-is-this)\n* [When to use this?](#when-to-use-this)\n* [Install](#install)\n* [Use](#use)\n* [API](#api)\n  * [`resolve(specifier, parent)`](#resolvespecifier-parent)\n  * [`moduleResolve(specifier, parent, conditions, preserveSymlinks)`](#moduleresolvespecifier-parent-conditions-preservesymlinks)\n  * [`ErrnoException`](#errnoexception)\n* [Algorithm](#algorithm)\n* [Differences to Node](#differences-to-node)\n* [Types](#types)\n* [Compatibility](#compatibility)\n* [Contribute](#contribute)\n* [License](#license)\n\n## What is this?\n\nThis package is a ponyfill for [`import.meta.resolve`][native-resolve].\nIt supports everything you need to resolve files just like modern Node does:\nimport maps, export maps, loading CJS and ESM projects, all of that!\n\n## When to use this?\n\nAs of Node.js 20.0, `import.meta.resolve` is still behind an experimental flag.\nThis package can be used to do what it does in Node 16–20.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install import-meta-resolve\n```\n\n## Use\n\n```js\nimport {resolve} from 'import-meta-resolve'\n\n// A file:\nconsole.log(resolve('./index.js', import.meta.url))\n//=> file:///Users/tilde/Projects/oss/import-meta-resolve/index.js\n\n// A CJS package:\nconsole.log(resolve('builtins', import.meta.url))\n//=> file:///Users/tilde/Projects/oss/import-meta-resolve/node_modules/builtins/index.js\n\n// A scoped CJS package:\nconsole.log(resolve('@eslint/eslintrc', import.meta.url))\n//=> file:///Users/tilde/Projects/oss/import-meta-resolve/node_modules/@eslint/eslintrc/lib/index.js\n\n// A package with an export map:\nconsole.log(resolve('micromark/lib/parse', import.meta.url))\n//=> file:///Users/tilde/Projects/oss/import-meta-resolve/node_modules/micromark/lib/parse.js\n\n// A node builtin:\nconsole.log(resolve('fs', import.meta.url))\n//=> node:fs\n```\n\n## API\n\nThis package exports the identifiers [`moduleResolve`][moduleresolve] and\n[`resolve`][resolve].\nThere is no default export.\n\n### `resolve(specifier, parent)`\n\nMatch `import.meta.resolve` except that `parent` is required (you can pass\n`import.meta.url`).\n\n###### Parameters\n\n* `specifier` (`string`)\n  — the module specifier to resolve relative to parent\n  (`/example.js`, `./example.js`, `../example.js`, `some-package`, `fs`, etc)\n* `parent` (`string`, example: `import.meta.url`)\n  — the absolute parent module URL to resolve from; you must pass\n  `import.meta.url` or something else\n\n###### Returns\n\nFull `file:`, `data:`, or `node:` URL (`string`) to the found thing\n\n###### Throws\n\nThrows an [`ErrnoException`][errnoexception].\n\n### `moduleResolve(specifier, parent, conditions, preserveSymlinks)`\n\nThe [“Resolver Algorithm Specification”][algo] as detailed in the Node docs\n(which is slightly lower-level than `resolve`).\n\n###### Parameters\n\n* `specifier` (`string`)\n  — `/example.js`, `./example.js`, `../example.js`, `some-package`, `fs`, etc\n* `parent` (`URL`, example: `import.meta.url`)\n  — full URL (to a file) that `specifier` is resolved relative from\n* `conditions` (`Set<string>`, default: `new Set(['node', 'import'])`)\n  — conditions\n* `preserveSymlinks` (`boolean`, default: `false`)\n  — keep symlinks instead of resolving them\n\n###### Returns\n\nA URL object (`URL`) to the found thing.\n\n###### Throws\n\nThrows an [`ErrnoException`][errnoexception].\n\n### `ErrnoException`\n\nOne of many different errors that occur when resolving (TypeScript type).\n\n###### Type\n\n```ts\ntype ErrnoExceptionFields = Error & {\n  errnode?: number | undefined\n  code?: string | undefined\n  path?: string | undefined\n  syscall?: string | undefined\n  url?: string | undefined\n}\n```\n\nThe `code` field on errors is one of the following strings:\n\n* `'ERR_INVALID_MODULE_SPECIFIER'`\n  — when `specifier` is invalid (example: `'#'`)\n* `'ERR_INVALID_PACKAGE_CONFIG'`\n  — when a `package.json` is invalid (example: invalid JSON)\n* `'ERR_INVALID_PACKAGE_TARGET'`\n  — when a `package.json` `exports` or `imports` is invalid (example: when it\n  does not start with `'./'`)\n* `'ERR_MODULE_NOT_FOUND'`\n  — when `specifier` cannot be found in `parent` (example: `'some-missing-package'`)\n* `'ERR_NETWORK_IMPORT_DISALLOWED'`\n  — thrown when trying to resolve a local file or builtin from a remote file\n  (`node:fs` relative to `'https://example.com'`)\n* `'ERR_PACKAGE_IMPORT_NOT_DEFINED'`\n  — when a local import is not defined in an import map (example: `'#local'`\n  when not defined)\n* `'ERR_PACKAGE_PATH_NOT_EXPORTED'`\n  — when an export is not defined in an export map (example: `'tape/index.js'`,\n  which is not in its export map)\n* `'ERR_UNSUPPORTED_DIR_IMPORT'`\n  — when attempting to import a directory (example: `'./lib/'`)\n* `'ERR_UNKNOWN_FILE_EXTENSION'`\n  — when somehow reading a file that has an unexpected extensions (`'./readme.md'`)\n* `'ERR_INVALID_ARG_VALUE'`\n  — when `conditions` is incorrect\n\n## Algorithm\n\nThe algorithm for `resolve` matches how Node handles `import.meta.resolve`, with\na couple of differences.\n\nThe algorithm for `moduleResolve` matches the [Resolver Algorithm\nSpecification][algo] as detailed in the Node docs (which is sync and slightly\nlower-level than `resolve`).\n\n## Differences to Node\n\n* `parent` defaulting to `import.meta.url` cannot be ponyfilled: you have to\n  explicitly pass it\n* no support for loaders (that would mean implementing all of loaders)\n* no support for CLI flags:\n  `--conditions`,\n  `--experimental-default-type`,\n  `--experimental-json-modules`,\n  `--experimental-network-imports`,\n  `--experimental-policy`,\n  `--experimental-wasm-modules`,\n  `--input-type`,\n  `--no-addons`,\n  `--preserve-symlinks`, nor\n  `--preserve-symlinks-main`\n  work\n* no support for `WATCH_REPORT_DEPENDENCIES` env variable\n* no attempt is made to add a suggestion based on how things used to work in\n  CJS before to not-found errors\n* prototypal methods are not guarded: Node protects for example `String#slice`\n  or so from being tampered with, whereas this doesn’t\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional type [`ErrnoException`][errnoexception].\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 16 and later.\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## License\n\n[MIT][license] © [Titus Wormer][author] and Node.js contributors\n\n<!-- Definitions -->\n\n[algo]: https://nodejs.org/dist/latest-v14.x/docs/api/esm.html#esm_resolver_algorithm\n\n[author]: https://wooorm.com\n\n[build]: https://github.com/wooorm/import-meta-resolve/actions\n\n[build-badge]: https://github.com/wooorm/import-meta-resolve/workflows/main/badge.svg\n\n[contribute]: https://opensource.guide/how-to-contribute/\n\n[coverage]: https://codecov.io/github/wooorm/import-meta-resolve\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/import-meta-resolve.svg\n\n[downloads]: https://www.npmjs.com/package/import-meta-resolve\n\n[downloads-badge]: https://img.shields.io/npm/dm/import-meta-resolve.svg\n\n[errnoexception]: #errnoexception\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[license]: license\n\n[moduleresolve]: #moduleResolvespecifier-parent-conditions-preserveSymlinks\n\n[native-resolve]: https://nodejs.org/api/esm.html#esm_import_meta_resolve_specifier_parent\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[resolve]: #resolvespecifier-parent\n\n[typescript]: https://www.typescriptlang.org\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/un-es/import-meta-resolve.git"
  },
  "bugs": {
    "url": "https://github.com/wooorm/import-meta-resolve/issues"
  },
  "license": "MIT",
  "versions": {
    "4.0.0": {
      "name": "@dual-bundle/import-meta-resolve",
      "version": "4.0.0",
      "keywords": [
        "resolve",
        "node",
        "esm",
        "module",
        "import",
        "import-meta-resolve"
      ],
      "author": {
        "url": "https://wooorm.com",
        "name": "Titus Wormer",
        "email": "tituswormer@gmail.com"
      },
      "license": "MIT",
      "_id": "@dual-bundle/import-meta-resolve@4.0.0",
      "maintainers": [
        {
          "name": "jounqin",
          "email": "admin@1stg.me"
        }
      ],
      "contributors": [
        {
          "url": "https://wooorm.com",
          "name": "Titus Wormer",
          "email": "tituswormer@gmail.com"
        }
      ],
      "homepage": "https://github.com/un-es/import-meta-resolve#readme",
      "bugs": {
        "url": "https://github.com/wooorm/import-meta-resolve/issues"
      },
      "xo": {
        "rules": {
          "no-new": "off",
          "max-depth": "off",
          "complexity": "off",
          "max-params": "off",
          "unicorn/prefer-at": "off",
          "no-constant-condition": "off",
          "prefer-arrow-callback": "off",
          "unicorn/prefer-string-replace-all": "off"
        },
        "ignore": [
          "test/node_modules/"
        ],
        "prettier": true
      },
      "dist": {
        "shasum": "df79b7ea62c55094dc129880387864cdf41eca7c",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@dual-bundle/import-meta-resolve/-/import-meta-resolve-4.0.0.tgz",
        "fileCount": 20,
        "integrity": "sha512-ZKXyJeFAzcpKM2kk8ipoGIPUqx9BX52omTGnfwjJvxOCaZTM2wtDK7zN0aIgPRbT9XYAlha0HtmZ+XKteuh0Gw==",
        "signatures": [
          {
            "sig": "MEYCIQDTb+Y2WujzOUhXQTvhecBd2M7b9KzdpZCUKgw0lJhsSwIhAOLawlsIA+Rfeod1kr+zORUp3OfkZ/eNdHA46qF0R93Y",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 124719
      },
      "main": "index.cjs",
      "type": "module",
      "types": "index.d.ts",
      "module": "index.js",
      "exports": {
        "types": "./index.d.ts",
        "default": "./index.js",
        "require": "./index.cjs"
      },
      "funding": {
        "url": "https://github.com/sponsors/wooorm",
        "type": "github"
      },
      "gitHead": "8461ec387cb8283265d0e378986d00da504bd657",
      "scripts": {
        "test": "npm run generate && npm run build && npm run format && npm run test-coverage",
        "build": "tsc --build --clean && tsc --build && type-coverage && esbuild --bundle --outfile=index.cjs --platform=node --format=cjs index.js",
        "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
        "prepack": "npm run generate && npm run build && npm run format",
        "generate": "node --conditions development script.js",
        "test-api": "node --experimental-import-meta-resolve test/baseline.js && node --experimental-import-meta-resolve test/baseline-async.js && node test/index.js",
        "test-coverage": "c8 --check-coverage --branches 75 --functions 75 --lines 75 --statements 75 --reporter lcov npm run test-api"
      },
      "_npmUser": {
        "name": "jounqin",
        "email": "admin@1stg.me"
      },
      "prettier": {
        "semi": false,
        "useTabs": false,
        "tabWidth": 2,
        "singleQuote": true,
        "trailingComma": "none",
        "bracketSpacing": false
      },
      "repository": {
        "url": "git+https://github.com/un-es/import-meta-resolve.git",
        "type": "git"
      },
      "_npmVersion": "10.2.4",
      "description": "A fork of `import-meta-resolve` with commonjs + ESM support at the same time, AKA dual package.",
      "directories": {},
      "sideEffects": false,
      "_nodeVersion": "20.11.1",
      "remarkConfig": {
        "plugins": [
          "preset-wooorm",
          [
            "remark-lint-maximum-heading-length",
            false
          ],
          [
            "remark-lint-no-multiple-toplevel-headings",
            false
          ]
        ]
      },
      "typeCoverage": {
        "detail": true,
        "strict": true,
        "atLeast": 100,
        "ignoreCatch": true,
        "ignoreFiles": [
          "lib/errors.d.ts"
        ]
      },
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^8.0.0",
        "xo": "^0.56.0",
        "semver": "^7.0.0",
        "esbuild": "^0.20.1",
        "prettier": "^3.0.0",
        "remark-cli": "^11.0.0",
        "typescript": "^5.0.0",
        "@types/node": "^20.0.0",
        "@types/semver": "^7.0.0",
        "type-coverage": "^2.0.0",
        "remark-preset-wooorm": "^9.0.0"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/import-meta-resolve_4.0.0_1709128757181_0.5384992613692932",
        "host": "s3://npm-registry-packages"
      }
    },
    "4.1.0": {
      "name": "@dual-bundle/import-meta-resolve",
      "version": "4.1.0",
      "keywords": [
        "resolve",
        "node",
        "esm",
        "module",
        "import",
        "import-meta-resolve"
      ],
      "author": {
        "url": "https://wooorm.com",
        "name": "Titus Wormer",
        "email": "tituswormer@gmail.com"
      },
      "license": "MIT",
      "_id": "@dual-bundle/import-meta-resolve@4.1.0",
      "maintainers": [
        {
          "name": "jounqin",
          "email": "admin@1stg.me"
        }
      ],
      "contributors": [
        {
          "url": "https://wooorm.com",
          "name": "Titus Wormer",
          "email": "tituswormer@gmail.com"
        }
      ],
      "homepage": "https://github.com/un-es/import-meta-resolve#readme",
      "bugs": {
        "url": "https://github.com/wooorm/import-meta-resolve/issues"
      },
      "xo": {
        "rules": {
          "no-new": "off",
          "max-depth": "off",
          "complexity": "off",
          "max-params": "off",
          "unicorn/prefer-at": "off",
          "no-constant-condition": "off",
          "prefer-arrow-callback": "off",
          "unicorn/prefer-string-replace-all": "off"
        },
        "ignore": [
          "test/node_modules/"
        ],
        "prettier": true
      },
      "dist": {
        "shasum": "519c1549b0e147759e7825701ecffd25e5819f7b",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@dual-bundle/import-meta-resolve/-/import-meta-resolve-4.1.0.tgz",
        "fileCount": 16,
        "integrity": "sha512-+nxncfwHM5SgAtrVzgpzJOI1ol0PkumhVo469KCf9lUi21IGcY90G98VuHm9VRrUypmAzawAHO9bs6hqeADaVg==",
        "signatures": [
          {
            "sig": "MEUCIDRc5s3uGOoxiodnyrWcRHbbelXQGfjkPKhKdeCXJoLCAiEAhxGXpDXSKQpIeXaRGRM1DpOHyr6pfB68zHpbZXR53es=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 125577
      },
      "main": "index.cjs",
      "type": "module",
      "types": "index.d.ts",
      "module": "index.js",
      "exports": {
        "types": "./index.d.ts",
        "default": "./index.js",
        "require": "./index.cjs"
      },
      "funding": {
        "url": "https://github.com/sponsors/wooorm",
        "type": "github"
      },
      "gitHead": "3962469a82ff8a88a76bb92ab123e176bc6b6547",
      "scripts": {
        "test": "npm run generate && npm run build && npm run format && npm run test-coverage",
        "build": "tsc --build --clean && tsc --build && type-coverage && esbuild --bundle --outfile=index.cjs --platform=node --format=cjs index.js",
        "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
        "prepack": "npm run generate && npm run build && npm run format",
        "generate": "node --conditions development script.js",
        "test-api": "node --experimental-import-meta-resolve test/baseline.js && node --experimental-import-meta-resolve test/baseline-async.js && node test/index.js",
        "test-coverage": "c8 --check-coverage --branches 75 --functions 75 --lines 75 --statements 75 --reporter lcov npm run test-api"
      },
      "_npmUser": {
        "name": "jounqin",
        "email": "admin@1stg.me"
      },
      "prettier": {
        "semi": false,
        "useTabs": false,
        "tabWidth": 2,
        "singleQuote": true,
        "trailingComma": "none",
        "bracketSpacing": false
      },
      "repository": {
        "url": "git+https://github.com/un-es/import-meta-resolve.git",
        "type": "git"
      },
      "_npmVersion": "10.5.0",
      "description": "A fork of `import-meta-resolve` with commonjs + ESM support at the same time, AKA dual package.",
      "directories": {},
      "sideEffects": false,
      "_nodeVersion": "20.12.2",
      "remarkConfig": {
        "plugins": [
          "preset-wooorm",
          [
            "remark-lint-maximum-heading-length",
            false
          ],
          [
            "remark-lint-no-multiple-toplevel-headings",
            false
          ]
        ]
      },
      "typeCoverage": {
        "detail": true,
        "strict": true,
        "atLeast": 100,
        "ignoreCatch": true,
        "ignoreFiles": [
          "lib/errors.d.ts"
        ]
      },
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^9.0.0",
        "xo": "^0.58.0",
        "f-ck": "^2.0.0",
        "semver": "^7.0.0",
        "esbuild": "^0.21.1",
        "prettier": "^3.0.0",
        "remark-cli": "^12.0.0",
        "typescript": "^5.0.0",
        "@types/node": "^20.0.0",
        "@types/semver": "^7.0.0",
        "type-coverage": "^2.0.0",
        "remark-preset-wooorm": "^10.0.0"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/import-meta-resolve_4.1.0_1715233076843_0.7907170656210967",
        "host": "s3://npm-registry-packages"
      }
    },
    "4.2.0": {
      "name": "@dual-bundle/import-meta-resolve",
      "version": "4.2.0",
      "keywords": [
        "esm",
        "module",
        "node",
        "resolve"
      ],
      "author": {
        "url": "https://wooorm.com",
        "name": "Titus Wormer",
        "email": "tituswormer@gmail.com"
      },
      "license": "MIT",
      "_id": "@dual-bundle/import-meta-resolve@4.2.0",
      "maintainers": [
        {
          "name": "jounqin",
          "email": "admin@1stg.me"
        }
      ],
      "contributors": [
        {
          "url": "https://wooorm.com",
          "name": "Titus Wormer",
          "email": "tituswormer@gmail.com"
        }
      ],
      "homepage": "https://github.com/un-es/import-meta-resolve#readme",
      "bugs": {
        "url": "https://github.com/wooorm/import-meta-resolve/issues"
      },
      "dist": {
        "shasum": "5986501c71c6f7868fc28f246135a46516a944b4",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@dual-bundle/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz",
        "fileCount": 9,
        "integrity": "sha512-sRagqPp4g3XFpkaVh93/eThlNk3iU8cLmRbNVdaRj0nvVGNLSJGsBcU5WyEJfhA/h991l+ihKWMeZI2ywFAc2g==",
        "signatures": [
          {
            "sig": "MEUCIF1HLOGyZ+F56VXbGNEBDefdj0sDDlUGyXHLwKg4hmhzAiEA5Bkv9f1R+3euJoUejIGReQa1RQE+Iri1/AlDeph6YUc=",
            "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
          }
        ],
        "attestations": {
          "url": "https://registry.npmjs.org/-/npm/v1/attestations/@dual-bundle%2fimport-meta-resolve@4.2.0",
          "provenance": {
            "predicateType": "https://slsa.dev/provenance/v1"
          }
        },
        "unpackedSize": 73122
      },
      "main": "index.cjs",
      "type": "module",
      "types": "index.d.ts",
      "module": "index.js",
      "exports": {
        "types": "./index.d.ts",
        "default": "./index.js",
        "require": "./index.cjs"
      },
      "funding": {
        "url": "https://github.com/sponsors/JounQin",
        "type": "github"
      },
      "gitHead": "03f703efa999b4bae76b2e2177ef6094c2c4064f",
      "scripts": {
        "test": "npm run generate && npm run build && npm run format && npm run test-coverage",
        "build": "tsc --build --clean && tsc --build && type-coverage && esbuild --bundle --outfile=index.cjs --platform=node --format=cjs index.js",
        "format": "remark --frail --quiet --output -- . && prettier --write --log-level warn -- . && xo --fix",
        "prepack": "npm run generate && npm run build && npm run format",
        "generate": "node --conditions development script.js",
        "test-api": "node --experimental-import-meta-resolve test/baseline.js && node --experimental-import-meta-resolve test/baseline-async.js && node test/index.js",
        "test-coverage": "c8 --branches 75 --functions 75 --lines 75 --statements 75 --reporter lcov -- npm run test-api"
      },
      "_npmUser": {
        "name": "GitHub Actions",
        "email": "npm-oidc-no-reply@github.com",
        "trustedPublisher": {
          "id": "github",
          "oidcConfigId": "oidc:50518878-08ad-4852-aa2a-2ac3b808665f"
        }
      },
      "prettier": {
        "semi": false,
        "useTabs": false,
        "tabWidth": 2,
        "singleQuote": true,
        "trailingComma": "none",
        "bracketSpacing": false
      },
      "repository": {
        "url": "git+https://github.com/un-es/import-meta-resolve.git",
        "type": "git"
      },
      "_npmVersion": "11.5.1",
      "description": "A fork of `import-meta-resolve` with commonjs + ESM support at the same time, AKA dual package.",
      "directories": {},
      "sideEffects": false,
      "_nodeVersion": "24.7.0",
      "remarkConfig": {
        "plugins": [
          "remark-preset-wooorm",
          [
            "remark-lint-maximum-heading-length",
            false
          ],
          [
            "remark-lint-no-multiple-toplevel-headings",
            false
          ]
        ]
      },
      "typeCoverage": {
        "strict": true,
        "atLeast": 100,
        "ignoreFiles": [
          "lib/errors.d.ts"
        ]
      },
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^10.0.0",
        "xo": "^1.0.0",
        "f-ck": "^2.0.0",
        "semver": "^7.0.0",
        "esbuild": "^0.25.9",
        "prettier": "^3.0.0",
        "remark-cli": "^12.0.0",
        "typescript": "^5.0.0",
        "@types/node": "^24.0.0",
        "@types/semver": "^7.0.0",
        "type-coverage": "^2.0.0",
        "remark-preset-wooorm": "^11.0.0"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/import-meta-resolve_4.2.0_1756701546506_0.060576657951080026",
        "host": "s3://npm-registry-packages-npm-production"
      }
    },
    "4.2.1": {
      "author": {
        "name": "Titus Wormer",
        "email": "tituswormer@gmail.com",
        "url": "https://wooorm.com"
      },
      "bugs": {
        "url": "https://github.com/wooorm/import-meta-resolve/issues"
      },
      "maintainers": [
        {
          "name": "jounqin",
          "email": "admin@1stg.me"
        }
      ],
      "contributors": [
        {
          "name": "Titus Wormer",
          "email": "tituswormer@gmail.com",
          "url": "https://wooorm.com"
        }
      ],
      "description": "A fork of `import-meta-resolve` with commonjs + ESM support at the same time, AKA dual package.",
      "devDependencies": {
        "@changesets/cli": "^2.29.6",
        "@types/node": "^24.0.0",
        "@types/semver": "^7.0.0",
        "c8": "^10.0.0",
        "esbuild": "^0.25.9",
        "f-ck": "^2.0.0",
        "prettier": "^3.0.0",
        "remark-cli": "^12.0.0",
        "remark-preset-wooorm": "^11.0.0",
        "semver": "^7.0.0",
        "type-coverage": "^2.0.0",
        "typescript": "^5.0.0",
        "xo": "^1.0.0"
      },
      "funding": {
        "type": "github",
        "url": "https://github.com/sponsors/JounQin"
      },
      "keywords": [
        "esm",
        "module",
        "node",
        "resolve"
      ],
      "license": "MIT",
      "main": "index.cjs",
      "module": "index.js",
      "exports": {
        "types": "./index.d.ts",
        "require": "./index.cjs",
        "default": "./index.js"
      },
      "name": "@dual-bundle/import-meta-resolve",
      "prettier": {
        "bracketSpacing": false,
        "semi": false,
        "singleQuote": true,
        "tabWidth": 2,
        "trailingComma": "none",
        "useTabs": false
      },
      "remarkConfig": {
        "plugins": [
          "remark-preset-wooorm",
          [
            "remark-lint-maximum-heading-length",
            false
          ],
          [
            "remark-lint-no-multiple-toplevel-headings",
            false
          ]
        ]
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/un-es/import-meta-resolve.git"
      },
      "scripts": {
        "build": "tsc --build --clean && tsc --build && type-coverage && esbuild --bundle --outfile=index.cjs --platform=node --format=cjs index.js",
        "format": "remark --frail --quiet --output -- . && prettier --write --log-level warn -- . && xo --fix",
        "generate": "node --conditions development script.js",
        "prepack": "npm run generate && npm run build && npm run format",
        "test-api": "node --experimental-import-meta-resolve test/baseline.js && node --experimental-import-meta-resolve test/baseline-async.js && node test/index.js",
        "test-coverage": "c8 --branches 75 --functions 75 --lines 75 --statements 75 --reporter lcov -- npm run test-api",
        "test": "npm run generate && npm run build && npm run format && npm run test-coverage"
      },
      "sideEffects": false,
      "typeCoverage": {
        "atLeast": 100,
        "strict": true,
        "ignoreFiles": [
          "lib/errors.d.ts"
        ]
      },
      "types": "index.d.ts",
      "type": "module",
      "version": "4.2.1",
      "_id": "@dual-bundle/import-meta-resolve@4.2.1",
      "gitHead": "0cabbb68f8f4fb4cebab8b3704ade81299b909a3",
      "homepage": "https://github.com/un-es/import-meta-resolve#readme",
      "_nodeVersion": "24.7.0",
      "_npmVersion": "11.5.1",
      "dist": {
        "integrity": "sha512-id+7YRUgoUX6CgV0DtuhirQWodeeA7Lf4i2x71JS/vtA5pRb/hIGWlw+G6MeXvsM+MXrz0VAydTGElX1rAfgPg==",
        "shasum": "cd0b25b3808cd9e684cd6cd549bbf8e1dcf05ee7",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@dual-bundle/import-meta-resolve/-/import-meta-resolve-4.2.1.tgz",
        "fileCount": 22,
        "unpackedSize": 127033,
        "attestations": {
          "url": "https://registry.npmjs.org/-/npm/v1/attestations/@dual-bundle%2fimport-meta-resolve@4.2.1",
          "provenance": {
            "predicateType": "https://slsa.dev/provenance/v1"
          }
        },
        "signatures": [
          {
            "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
            "sig": "MEUCIFolqppO8vOCo8BzlHVh8P/5i7EohN12+p9Uv3d91enoAiEA4J6krM5dS3WwJ+n5fhI1isJf3rcYNc+9glPPDuTVH4E="
          }
        ]
      },
      "_npmUser": {
        "name": "GitHub Actions",
        "email": "npm-oidc-no-reply@github.com",
        "trustedPublisher": {
          "id": "github",
          "oidcConfigId": "oidc:50518878-08ad-4852-aa2a-2ac3b808665f"
        }
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages-npm-production",
        "tmp": "tmp/import-meta-resolve_4.2.1_1756702562980_0.7432713849954735"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "@dual-bundle/import-meta-resolve",
  "time": {
    "created": "2024-02-28T13:59:17.069Z",
    "modified": "2026-05-21T21:44:38.433Z",
    "4.0.0": "2024-02-28T13:59:17.321Z",
    "4.1.0": "2024-05-09T05:37:56.988Z",
    "4.2.0": "2025-09-01T04:39:06.692Z",
    "4.2.1": "2025-09-01T04:56:03.192Z"
  },
  "contributors": [
    {
      "name": "Titus Wormer",
      "email": "tituswormer@gmail.com",
      "url": "https://wooorm.com"
    }
  ],
  "readmeFilename": "readme.md",
  "homepage": "https://github.com/un-es/import-meta-resolve#readme"
}