Running TypeScript (tsx, Node, Bun, Deno)
Në shqip: Ekzekutimi i TypeScript-it
ShpjegimiSQ
Për ta ekzekutuar një skedar .ts direkt, pa e kompajluar veç: npx tsx skedari.ts, ose me Bun dhe Deno që e kuptojnë TypeScript-in vetë. Versionet e reja të Node.js mund t'i heqin tipet dhe ta ekzekutojnë direkt.
EnglishEN
To run a .ts file directly without compiling it separately: npx tsx file.ts, or with Bun and Deno, which understand TypeScript themselves. Newer versions of Node.js can strip the types and run it directly.
Si ta mendosh
Si një përkthyes simultan në vend të përkthimit me shkrim.
Lexoje në anglisht
Like a live interpreter instead of a written translation.
Shembull kodibash
npx tsx skripti.ts
bun skripti.ts