Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Gugustinette/unrun

Repository files navigation

unrun

npm version npm downloads Unit Test

unrun is a tool that enables running any module at runtime (TypeScript, ESM, CJS, JSX, etc.) by bundling it with Rolldown.

It is highly inspired by tools like :

Install

npm i unrun

Usage

Programmatic API

  • Async
import { unrun } from 'unrun'

const { module } = await unrun({
  path: './path/to/file.ts', // Path to the module to load
})
  • Sync
import { unrunSync } from 'unrun'

const { module } = unrunSync({
  path: './path/to/file.ts', // Path to the module to load
})

CLI

npx unrun ./path/to/file.ts

About

Unything at runtime

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published