TypeScript Require Extension for Node.js
JSON →typescript-require is a Node.js `require` extension designed to enable direct loading of TypeScript (`.ts`) modules without a separate pre-compilation step. Upon initialization, it hooks into Node's module resolution, compiling `.ts` files on-the-fly when they are `require`d, resolving internal dependencies. Its current stable version is 0.3.0, released in 2012. Given its age and the evolution of the TypeScript ecosystem, it represents an early approach to running TypeScript directly in Node.js, predating more modern solutions like `ts-node` or native ESM support with `tsx`. Key differentiators at the time were its simplicity as a `require` hook and configurability for ES target and error handling, but it lacks support for modern TypeScript features or robust project configuration via `tsconfig.json`.
Traffic · last 30 days ↓62% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France · 🇸🇬 Singapore