Socket
Socket
Sign inDemoInstall

@angeloashmore/esbuild-register

Package Overview
Dependencies
25
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @angeloashmore/esbuild-register

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


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
309 kB
Created
Weekly downloads
 

Readme

Source

esbuild-register

npm version npm downloads

Install

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

Usage

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:

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

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

Programmatic Usage

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

register({
  // ...options
})

License

MIT © EGOIST w

FAQs

Last updated on 31 Aug 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc