Gugustinette/unrun

Unything at runtime

84

stars

238

commits

TypeScript

primary language

Jun 6, 2026

updated

gugustinette.github.io/unrun/

README

unrun

Open on npmx Open on npmx Open on npmx Unit Test

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

Check the documentation for more details.

Install

npm i unrun

Usage

CLI

npx unrun ./path/to/file.ts

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
});

Credits

unrun is highly inspired by tools like :

Contributors

Gugustinette

191 commits

sxzz

47 commits

Gugustinette/unrun

Unything at runtime

84

stars

238

commits

TypeScript

primary language

Jun 6, 2026

updated

gugustinette.github.io/unrun/

README

unrun

Open on npmx Open on npmx Open on npmx Unit Test

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

Check the documentation for more details.

Install

npm i unrun

Usage

CLI

npx unrun ./path/to/file.ts

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
});

Credits

unrun is highly inspired by tools like :

Contributors

Gugustinette

191 commits

sxzz

47 commits

Languages

TypeScript

94.4%

JavaScript

5.6%