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

@digitak/esrun

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digitak/esrun

Execute directly your Typescript/Javascript(with ES modules) files using Esbuild

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11K
decreased by-5.98%
Maintainers
1
Weekly downloads
 
Created
Source

esrun

Execute your Typescript or modern Javascript files without having to use a bundler. This is useful for quick demonstrations or when launching your tests written in Typescript.

This library is a thin wrapper around esbuild which compiles Typescript almost instantly.

Usage

Install the library globally or locally with your favorite package manager.

npm i -D esrun

Then you can execute any Typescript file in the same way Node would execute a Javascript file.

esrun foo.ts

You can pass arguments to the process :

esrun foo.ts --option=bar

The file dependencies will be bundled and executed as well.

API

The library exports a single function that you can use to programmatically execute a Typescript file.

import esrun from '@digitak/esrun'

esrun(filePath: string, ...arguments: string[]): unknown

Keywords

FAQs

Package last updated on 14 Jan 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