lukeed/tsm

TypeScript Module Loader

TypeScript

1,191

74 commits

updated Jan 20, 2024

See the code

README

tsm
TypeScript Module Loader

Features

† The ESM Loader API is still experimental and will change in the future.

Install

# install as project dependency
$ npm install --save-dev tsm

# or install globally
$ npm install --global tsm

Usage

Note: Refer to /docs/usage.md for more information.

# 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

lukeed/tsm

TypeScript Module Loader

TypeScript

1,191

74 commits

updated Jan 20, 2024

See the code

README

tsm
TypeScript Module Loader

Features

† The ESM Loader API is still experimental and will change in the future.

Install

# install as project dependency
$ npm install --save-dev tsm

# or install globally
$ npm install --global tsm

Usage

Note: Refer to /docs/usage.md for more information.

# 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

Project health

npm

Latest release

2.3.0 · Nov 28, 2022

Releases this year

0

Significant stargazers

(top 24 of 32)

Bjorn Lu

1,670 followers · starred Oct 2021

Toru Nagashima

1,172 followers · starred Oct 2021

Anton Medvedev

3,232 followers · starred Mar 2023

William Boman

1,021 followers · starred Oct 2021