# tsm
**Repository Path**: mirrors_trending/tsm
## Basic Information
- **Project Name**: tsm
- **Description**: TypeScript Module Loader
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-10-10
- **Last Updated**: 2026-06-20
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
TypeScript Module Loader
## Features
* Supports `node ` usage
* Supports [ESM `--loader`](https://nodejs.org/api/esm.html#esm_loaders) usage†
* Supports [`--require` hook](https://nodejs.org/api/cli.html#cli_r_require_module) usage
* Optional [configuration](/docs/configuration.md) file for per-extension customization
> † The ESM Loader API is still **experimental** and will change in the future.
## Install
```sh
# install as project dependency
$ npm install --save-dev tsm
# or install globally
$ npm install --global tsm
```
## Usage
> **Note:** Refer to [`/docs/usage.md`](/docs/usage.md) for more information.
```sh
# use as `node` replacement
$ tsm server.ts
# forwards any `node` ENV or flags
$ NO_COLOR=1 tsm server.ts --trace-warnings
# use as `--require` hook
$ node --require tsm server.tsx
$ node -r tsm server.tsx
# use as `--loader` hook
$ node --loader tsm main.jsx
```
## License
MIT © [Luke Edwards](https://lukeed.com)