{"library":"tsm","type":"library","category":null,"description":"tsm is a TypeScript Module Loader for Node.js, currently at version 2.3.0, enabling seamless execution of TypeScript and modern JavaScript files directly within Node.js environments without a separate compilation step. It leverages `esbuild` for high-performance transformations, allowing developers to run `.ts`, `.tsx`, `.mts`, and `.cts` files out-of-the-box. The package is actively maintained, with recent releases addressing compatibility with newer Node.js versions and `esbuild` updates, indicating a responsive release cadence. Its key differentiators include comprehensive support for multiple Node.js execution paradigms: direct CLI invocation (`tsm script.ts`), the `--require` hook for CommonJS environments, and the experimental `--loader` hook for ECMAScript Modules. tsm also handles complex interop scenarios, such as requiring ESM `.js` files, and supports modern TypeScript features like the `satisfies` operator, making it a robust solution for developing Node.js applications with TypeScript by simplifying the developer experience.","language":"javascript","status":"active","version":"2.3.0","tags":["javascript","esm","loader","typescript","loader hook","require hook","experimental-loader"],"last_verified":"Wed May 27","install":[{"cmd":"npm install tsm","imports":["tsm my-script.ts","node --require tsm my-script.tsx","node --loader tsm my-module.jsx"]},{"cmd":"yarn add tsm","imports":[]},{"cmd":"pnpm add tsm","imports":[]}],"homepage":null,"github":"https://github.com/lukeed/tsm","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/tsm","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/tsm/compatibility"}}