Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

exec-ts

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exec-ts

Transpiles TypeScript files to JavaScript and executes them.

  • 0.0.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
21
increased by425%
Maintainers
1
Weekly downloads
 
Created
Source

exec-ts

Transpiles TypeScript files to JavaScript and executes them.

Usage

npx exec-ts ./your-ts-file.ts

CLI Arguments

  • --require module Preload the specified module at startup before executing the script. Similar to node's --require flag. Useful in combination with tsconfig-paths to support aliases in your TypeScript scripts. Can be specified multiple times to preload multiple modules. --require module-a --require module-b

  • --project ./path/to/tsconfig.json Specify path to tsconfig.json file. Default behavior is to discover the closest tsconfig.json file starting from the folder of the executed file traversing up.

Passing arguments to scripts

You need to use -- before passing arguments to the TS file.

npx exec-ts ./your-ts-file.ts -- --your-arg=is-valid

Arguments before -- are parsed by exec-ts itself.

Caveats

Uses esbuild, hence esbuild caveats apply.

FAQs

Package last updated on 17 May 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc