{"library":"ts-directly","type":"library","category":null,"description":"TS-Directly (v2.1.2) is a lightweight ESM loader that lets Node.js execute TypeScript files directly using the compiler already installed in the project (SWC, esbuild, sucrase, or tsc). It features automatic compiler detection (preferring the fastest), respects closest tsconfig.json including baseUrl/paths aliases, supports .cts/.mts files and ESNext module output, and exposes a transform API. Unlike ts-node or tsx it does not bundle a compiler, making it ideal for CLI tools that want to reuse existing dependencies. Released monthly on npm, actively maintained with 5 KB minified size and zero extra dependency beyond node loaders.","language":"javascript","status":"active","version":"2.1.2","tags":["javascript","loader","compiler","node","esm","typescript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install ts-directly","imports":["import { transform } from 'ts-directly'","module.register('ts-directly', import.meta.url)","import 'ts-directly/register'"]},{"cmd":"yarn add ts-directly","imports":[]},{"cmd":"pnpm add ts-directly","imports":[]}],"homepage":null,"github":"https://github.com/Kaciras/ts-directly","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ts-directly","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}