{"library":"typescript-require","type":"library","category":null,"description":"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`.","language":"javascript","status":"abandoned","version":"0.3.0","tags":["javascript","typescript","require"],"last_verified":"Wed May 27","install":[{"cmd":"npm install typescript-require","imports":["require('typescript-require');","require('typescript-require')({ targetES5: true, exitOnError: false });","var myModule = require('./myModule.ts');"]},{"cmd":"yarn add typescript-require","imports":[]},{"cmd":"pnpm add typescript-require","imports":[]}],"homepage":null,"github":"https://github.com/theblacksmith/typescript-require","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/typescript-require","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/typescript-require/compatibility"}}