# @dish/esbuild-register

> Transpile JSX, TypeScript and esnext features on the fly with esbuild

Latest version **0.1.0** (published 2021-04-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dish/esbuild-register
pnpm add @dish/esbuild-register
yarn add @dish/esbuild-register
bun add @dish/esbuild-register
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2021-04-07 |
| First published | 2021-04-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 96.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | nwienert, pablosz |

## Links

- npm: https://www.npmjs.com/package/@dish/esbuild-register
- npm.io page: https://npm.io/package/@dish/esbuild-register

## Dependencies (2)

- [esbuild](https://npm.io/package/esbuild.md) ^0.11.5
- [jsonc-parser](https://npm.io/package/jsonc-parser.md) ^3.0.0

## Recent versions

- 0.1.0 (latest) — 2021-04-07
- 0.0.0 — 2021-04-06

## README

# esbuild-register

## Install

```bash
npm i esbuild-register -D
# Or Yarn
yarn add esbuild-register --dev
```

## Usage

```bash
node -r esbuild-register file.ts
```

It will use `jsxFactory`, `jsxFragmentFactory` and `target` options from your `tsconfig.json`

When using Yarn, you can add an npm script:

```json
"ts": "node -r esbuild-register"
```

to shorten the command, now just run `yarn ts file.ts` instead.

## Programmatic Usage

```ts
const { register } = require('esbuild-register/dist/node')

register({
  // ...options
})
```

## License

MIT &copy; [EGOIST](https://egoist.sh)
w

---
_Source: https://npm.io/package/@dish/esbuild-register · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
