{
  "manifest": {
    "name": "jiti",
    "version": "1.21.0",
    "description": "Runtime typescript and ESM support for Node.js",
    "repository": {
      "type": "git",
      "url": "https://github.com/unjs/jiti.git"
    },
    "license": "MIT",
    "main": "./lib/index.js",
    "types": "dist/jiti.d.ts",
    "bin": {
      "jiti": "bin/jiti.js"
    },
    "files": [
      "lib",
      "dist",
      "register.js"
    ],
    "scripts": {
      "build": "pnpm clean && NODE_ENV=production pnpm webpack",
      "clean": "rm -rf dist",
      "dev": "pnpm clean && pnpm webpack --watch",
      "jiti": "JITI_DEBUG=1 JITI_CACHE=false JITI_REQUIRE_CACHE=false ./bin/jiti.js",
      "jiti:legacy": "JITI_DEBUG=1 npx node@12 ./bin/jiti.js",
      "lint": "eslint --ext .ts,.js . && prettier -c src lib test stubs",
      "lint:fix": "eslint --fix --ext .ts,.js . && prettier -w src lib test stubs",
      "release": "pnpm build && pnpm test && changelogen --release --push && npm publish",
      "test": "pnpm lint && vitest run --coverage && pnpm test:bun",
      "test:bun": "bun --bun test test/bun"
    },
    "devDependencies": {
      "@babel/core": "^7.23.2",
      "@babel/plugin-proposal-decorators": "^7.23.2",
      "@babel/plugin-syntax-class-properties": "^7.12.13",
      "@babel/plugin-syntax-import-assertions": "^7.22.5",
      "@babel/plugin-transform-export-namespace-from": "^7.22.11",
      "@babel/plugin-transform-modules-commonjs": "^7.23.0",
      "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.11",
      "@babel/plugin-transform-optional-chaining": "^7.23.0",
      "@babel/plugin-transform-typescript": "^7.22.15",
      "@babel/preset-typescript": "^7.23.2",
      "@babel/template": "^7.22.15",
      "@babel/types": "^7.23.0",
      "@types/babel__core": "^7.20.3",
      "@types/babel__template": "^7.4.3",
      "@types/node": "^20.8.9",
      "@types/object-hash": "^3.0.5",
      "@types/resolve": "^1.20.4",
      "@types/semver": "^7.5.4",
      "@vitest/coverage-v8": "^0.34.6",
      "acorn": "^8.11.2",
      "babel-plugin-dynamic-import-node": "^2.3.3",
      "babel-plugin-parameter-decorator": "^1.0.16",
      "babel-plugin-transform-typescript-metadata": "^0.3.2",
      "changelogen": "^0.5.5",
      "config": "^3.3.9",
      "create-require": "^1.1.1",
      "destr": "^2.0.2",
      "escape-string-regexp": "^5.0.0",
      "eslint": "^8.52.0",
      "eslint-config-unjs": "^0.2.1",
      "esm": "^3.2.25",
      "estree-walker": "^3.0.3",
      "execa": "^8.0.1",
      "fast-glob": "^3.3.1",
      "mlly": "^1.4.2",
      "object-hash": "^3.0.0",
      "pathe": "^1.1.1",
      "pirates": "^4.0.6",
      "pkg-types": "^1.0.3",
      "prettier": "^3.0.3",
      "reflect-metadata": "^0.1.13",
      "semver": "^7.5.4",
      "std-env": "^3.4.3",
      "terser-webpack-plugin": "^5.3.9",
      "ts-loader": "^9.5.0",
      "tslib": "^2.6.2",
      "typescript": "^5.2.2",
      "vite": "^4.5.0",
      "vitest": "^0.34.6",
      "webpack": "^5.89.0",
      "webpack-cli": "^5.1.4"
    },
    "packageManager": "pnpm@8.8.0",
    "_registry": "npm",
    "_loc": "/homez.1033/heliovt/.cache/yarn/v6/npm-jiti-1.21.0-7c97f8fe045724e136a397f7340475244156105d-integrity/node_modules/jiti/package.json",
    "readmeFilename": "README.md",
    "readme": "# jiti\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![bundle][bundle-src]][bundle-href]\n[![License][license-src]][license-href]\n\nRuntime Typescript and ESM support for Node.js.\n\n> [!IMPORTANT]\n> This is the support branch for jiti v1. Check out [jiti/main](https://github.com/unjs/jiti/tree/main) for the latest version and [unjs/jiti#174](https://github.com/unjs/jiti/issues/174) for the roadmap.\n\n## Features\n\n- Seamless typescript and ESM syntax support\n- Seamless interoperability between ESM and CommonJS\n- Synchronous API to replace `require`\n- Super slim and zero dependency\n- Smart syntax detection to avoid extra transforms\n- CommonJS cache integration\n- Filesystem transpile hard cache\n- V8 compile cache\n- Custom resolve alias\n\n## Usage\n\n### Programmatic\n\n```js\nconst jiti = require(\"jiti\")(__filename);\n\njiti(\"./path/to/file.ts\");\n```\n\nYou can also pass options as second argument:\n\n```js\nconst jiti = require(\"jiti\")(__filename, { debug: true });\n```\n\n### CLI\n\n```bash\njiti index.ts\n# or npx jiti index.ts\n```\n\n### Register require hook\n\n```bash\nnode -r jiti/register index.ts\n```\n\nAlternatively, you can register `jiti` as a require hook programmatically:\n\n```js\nconst jiti = require(\"jiti\")();\nconst unregister = jiti.register();\n```\n\n## Options\n\n### `debug`\n\n- Type: Boolean\n- Default: `false`\n- Environment Variable: `JITI_DEBUG`\n\nEnable debug to see which files are transpiled\n\n### `cache`\n\n- Type: Boolean | String\n- Default: `true`\n- Environment Variable: `JITI_CACHE`\n\nUse transpile cache\n\nIf set to `true` will use `node_modules/.cache/jiti` (if exists) or `{TMP_DIR}/node-jiti`\n\n### `esmResolve`\n\n- Type: Boolean | String\n- Default: `false`\n- Environment Variable: `JITI_ESM_RESOLVE`\n\nUsing esm resolution algorithm to support `import` condition.\n\n### `transform`\n\n- Type: Function\n- Default: Babel (lazy loaded)\n\nTransform function. See [src/babel](./src/babel.ts) for more details\n\n### `sourceMaps`\n\n- Type: Boolean\n- Default `false`\n- Environment Variable: `JITI_SOURCE_MAPS`\n\nAdd inline source map to transformed source for better debugging.\n\n### `interopDefault`\n\n- Type: Boolean\n- Default: `false`\n\nReturn the `.default` export of a module at the top-level.\n\n### `alias`\n\n- Type: Object\n- Default: -\n- Environment Variable: `JITI_ALIAS`\n\nCustom alias map used to resolve ids.\n\n### `nativeModules`\n\n- Type: Array\n- Default: ['typescript`]\n- Environment Variable: `JITI_NATIVE_MODULES`\n\nList of modules (within `node_modules`) to always use native require for them.\n\n### `transformModules`\n\n- Type: Array\n- Default: []\n- Environment Variable: `JITI_TRANSFORM_MODULES`\n\nList of modules (within `node_modules`) to transform them regardless of syntax.\n\n### `experimentalBun`\n\n- Type: Boolean\n- Default: Enabled if `process.versions.bun` exists (Bun runtime)\n- Environment Variable: `JITI_EXPERIMENTAL_BUN`\n\nEnable experimental native Bun support for transformations.\n\n## Development\n\n- Clone this repository\n- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`\n- Install dependencies using `pnpm install`\n- Run `pnpm dev`\n- Run `pnpm jiti ./test/path/to/file.ts`\n\n## License\n\nMIT. Made with 💖\n\n<!-- Badged -->\n\n[npm-version-src]: https://img.shields.io/npm/v/jiti?style=flat&colorA=18181B&colorB=F0DB4F\n[npm-version-href]: https://npmjs.com/package/jiti\n[npm-downloads-src]: https://img.shields.io/npm/dm/jiti?style=flat&colorA=18181B&colorB=F0DB4F\n[npm-downloads-href]: https://npmjs.com/package/jiti\n[bundle-src]: https://img.shields.io/bundlephobia/minzip/jiti?style=flat&colorA=18181B&colorB=F0DB4F\n[bundle-href]: https://bundlephobia.com/result?p=h3\n[license-src]: https://img.shields.io/github/license/unjs/jiti.svg?style=flat&colorA=18181B&colorB=F0DB4F\n[license-href]: https://github.com/unjs/jiti/blob/main/LICENSE\n",
    "licenseText": "MIT License\n\nCopyright (c) Pooya Parsa <pooya@pi0.io>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  "artifacts": [],
  "remote": {
    "resolved": "https://registry.yarnpkg.com/jiti/-/jiti-1.21.0.tgz#7c97f8fe045724e136a397f7340475244156105d",
    "type": "tarball",
    "reference": "https://registry.yarnpkg.com/jiti/-/jiti-1.21.0.tgz",
    "hash": "7c97f8fe045724e136a397f7340475244156105d",
    "integrity": "sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==",
    "registry": "npm",
    "packageName": "jiti",
    "cacheIntegrity": "sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q== sha1-fJf4/gRXJOE2o5f3NAR1JEFWEF0="
  },
  "registry": "npm",
  "hash": "7c97f8fe045724e136a397f7340475244156105d"
}