g has-emoji"> 058f31828c first commit 1 gadu atpakaļ 3394_fsm 058f31828c first commit 1 gadu atpakaļ 3394_vm 058f31828c first commit 1 gadu atpakaļ 3395 058f31828c first commit 1 gadu atpakaļ 3429 058f31828c first commit 1 gadu atpakaļ 3430 058f31828c first commit 1 gadu atpakaļ 3431 058f31828c first commit 1 gadu atpakaļ 3433 058f31828c first commit 1 gadu atpakaļ 3439 058f31828c first commit 1 gadu atpakaļ 3440 058f31828c first commit 1 gadu atpakaļ 3455 058f31828c first commit 1 gadu atpakaļ 3456 058f31828c first commit 1 gadu atpakaļ 3456_fsm 058f31828c first commit 1 gadu atpakaļ 3456_vm 058f31828c first commit 1 gadu atpakaļ 3466 058f31828c first commit 1 gadu atpakaļ 3467 058f31828c first commit 1 gadu atpakaļ 3468 058f31828c first commit 1 gadu atpakaļ 3501 058f31828c first commit 1 gadu atpakaļ 3502 058f31828c first commit 1 gadu atpakaļ 3503 058f31828c first commit 1 gadu atpakaļ 3534 058f31828c first commit 1 gadu atpakaļ 3541 058f31828c first commit 1 gadu atpakaļ 3541_fsm 058f31828c first commit 1 gadu atpakaļ 3541_vm 058f31828c first commit 1 gadu atpakaļ 3542 058f31828c first commit 1 gadu atpakaļ 3574 058f31828c first commit 1 gadu atpakaļ 3575 058f31828c first commit 1 gadu atpakaļ 3576 058f31828c first commit 1 gadu atpakaļ 3596 058f31828c first commit 1 gadu atpakaļ 3597 058f31828c first commit 1 gadu atpakaļ 3598 058f31828c first commit 1 gadu atpakaļ 3599 058f31828c first commit 1 gadu atpakaļ 3600 058f31828c first commit 1 gadu atpakaļ 3600_fsm 058f31828c first commit 1 gadu atpakaļ 3600_vm 058f31828c first commit 1 gadu atpakaļ 3601 058f31828c first commit 1 gadu atpakaļ 3601_fsm 058f31828c first commit 1 gadu atpakaļ 3601_vm 058f31828c first commit 1 gadu atpakaļ 3602 058f31828c first commit 1 gadu atpakaļ 3602_fsm 058f31828c first commit 1 gadu atpakaļ 3602_vm 058f31828c first commit 1 gadu atpakaļ 3603 058f31828c first commit 1 gadu atpakaļ 3603_fsm 058f31828c first commit 1 gadu atpakaļ 3603_vm 058f31828c first commit 1 gadu atpakaļ 3604 058f31828c first commit 1 gadu atpakaļ 3605 058f31828c first commit 1 gadu atpakaļ 3606 058f31828c first commit 1 gadu atpakaļ 3607 058f31828c first commit 1 gadu atpakaļ 3608 058f31828c first commit 1 gadu atpakaļ 3609 058f31828c first commit 1 gadu atpakaļ 3712 058f31828c first commit 1 gadu atpakaļ 3764 058f31828c first commit 1 gadu atpakaļ 3764_fsm 058f31828c first commit 1 gadu atpakaļ 3764_vm 058f31828c first commit 1 gadu atpakaļ 3766 058f31828c first commit 1 gadu atpakaļ 3767 058f31828c first commit 1 gadu atpakaļ 3997 058f31828c first commit 1 gadu atpakaļ 4143 058f31828c first commit 1 gadu atpakaļ 4144 058f31828c first commit 1 gadu atpakaļ 4145 058f31828c first commit 1 gadu atpakaļ 4146 058f31828c first commit 1 gadu atpakaļ 4147 058f31828c first commit 1 gadu atpakaļ 4148 058f31828c first commit 1 gadu atpakaļ 4149 058f31828c first commit 1 gadu atpakaļ 4150 058f31828c first commit 1 gadu atpakaļ 4151 058f31828c first commit 1 gadu atpakaļ 4152 058f31828c first commit 1 gadu atpakaļ 4153 058f31828c first commit 1 gadu atpakaļ 4154 058f31828c first commit 1 gadu atpakaļ 4155 058f31828c first commit 1 gadu atpakaļ 4156 058f31828c first commit 1 gadu atpakaļ 4157 058f31828c first commit 1 gadu atpakaļ 4158 058f31828c first commit 1 gadu atpakaļ 4159 058f31828c first commit 1 gadu atpakaļ 4160 058f31828c first commit 1 gadu atpakaļ 4161 058f31828c first commit 1 gadu atpakaļ 4162 058f31828c first commit 1 gadu atpakaļ 4163 058f31828c first commit 1 gadu atpakaļ 4164 058f31828c first commit 1 gadu atpakaļ 4165 058f31828c first commit 1 gadu atpakaļ 4166 058f31828c first commit 1 gadu atpakaļ 4167 058f31828c first commit 1 gadu atpakaļ 4168 058f31828c first commit 1 gadu atpakaļ 4169 058f31828c first commit 1 gadu atpakaļ 4170 058f31828c first commit 1 gadu atpakaļ 4171 058f31828c first commit 1 gadu atpakaļ 4172 058f31828c first commit 1 gadu atpakaļ 4173 058f31828c first commit 1 gadu atpakaļ 4174 058f31828c first commit 1 gadu atpakaļ 5002 058f31828c first commit 1 gadu atpakaļ 548 058f31828c first commit 1 gadu atpakaļ 549 058f31828c first commit 1 gadu atpakaļ 6102 058f31828c first commit 1 gadu atpakaļ 6104 058f31828c first commit 1 gadu atpakaļ 6106 058f31828c first commit 1 gadu atpakaļ 6110 058f31828c first commit 1 gadu atpakaļ 6111 058f31828c first commit 1 gadu atpakaļ 6112 058f31828c first commit 1 gadu atpakaļ 6113 058f31828c first commit 1 gadu atpakaļ 6117 058f31828c first commit 1 gadu atpakaļ 826 058f31828c first commit 1 gadu atpakaļ 827 058f31828c first commit 1 gadu atpakaļ 828 058f31828c first commit 1 gadu atpakaļ PG_VERSION 058f31828c first commit 1 gadu atpakaļ pg_filenode.map 058f31828c first commit 1 gadu atpakaļ tum/tmt_learning - Gogs: Simplico Git Service

暂无描述

Prach Pongpanich 6f337d0a21 install tailwind alpine daisyui 3 年之前
..
bin 6f337d0a21 install tailwind alpine daisyui 3 年之前
dist 6f337d0a21 install tailwind alpine daisyui 3 年之前
LICENSE 6f337d0a21 install tailwind alpine daisyui 3 年之前
README.md 6f337d0a21 install tailwind alpine daisyui 3 年之前
package.json 6f337d0a21 install tailwind alpine daisyui 3 年之前
register.js 6f337d0a21 install tailwind alpine daisyui 3 年之前

README.md

jiti

Runtime typescript and ESM support for Node.js

version downloads size

Features

  • Seamless typescript and ESM syntax support
  • Seamless interoperability between ESM and CommonJS
  • Synchronous API to replace require
  • Super slim and zero dependency
  • Smart syntax detection to avoid extra transforms
  • CommonJS cache integration
  • Filesystem transpile hard cache
  • V8 compile cache
  • Custom resolve alias

Usage

Programmatic

const jiti = require("jiti")(__filename);

jiti("./path/to/file.ts");

You can also pass options as second argument:

const jiti = require("jiti")(__filename, { debug: true });

CLI

jiti index.ts
# or npx jiti index.ts

Register require hook

node -r jiti/register index.ts

Alternatively, you can register jiti as a require hook programmatically:

const jiti = require("jiti")();
const unregister = jiti.register();

Options

debug

  • Type: Boolean
  • Default: false
  • Environment Variable: JITI_DEBUG

Enable debug to see which files are transpiled

cache

  • Type: Boolean | String
  • Default: true
  • Environment Variable: JITI_CACHE

Use transpile cache

If set to true will use node_modules/.cache/jiti (if exists) or {TMP_DIR}/node-jiti

esmResolve

  • Type: Boolean | String
  • Default: false
  • Environment Variable: JITI_ESM_RESOLVE

Using esm resolution algorithm to support import condition.

transform

  • Type: Function
  • Default: Babel (lazy loaded)

Transform function. See src/babel for more details

sourceMaps

  • Type: Boolean
  • Default false
  • Environment Variable: JITI_SOURCE_MAPS

Add inline source map to transformed source for better debugging.

interopDefault

  • Type: Boolean
  • Default: false

Return the .default export of a module at the top-level.

alias

  • Type: Object
  • Default: -
  • Environment Variable: JITI_ALIAS

Custom alias map used to resolve ids.

nativeModules

  • Type: Array
  • Default: ['typescript`]
  • Environment Variable: JITI_NATIVE_MODULES

List of modules (within node_modules) to always use native require for them.

transformModules

  • Type: Array
  • Default: []
  • Environment Variable: JITI_TRANSFORM_MODULES

List of modules (within node_modules) to transform them regardless of syntax.

Development

  • Clone this repository
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run pnpm dev
  • Run pnpm jiti ./test/path/to/file.ts

License

MIT. Made with 💖