package
A tool to load and execute any JavaScript or TypeScript code at runtime.
npm install unrunGitHub-flavored package documentation.
Across all versions, last 30 days.
9,595,849 in 30 days
Runtime metadata.
gugustinette
gugustinette@proton.me
Estimated unpacked size across 4 packages.
1.1 MB
Includes dependencies.
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.
npm i unrunnpx unrun ./path/to/file.tsimport { unrun } from "unrun";
const { module } = await unrun({
path: "./path/to/file.ts", // Path to the module to load
});import { unrunSync } from "unrun";
const { module } = unrunSync({
path: "./path/to/file.ts", // Path to the module to load
});unrun is highly inspired by tools like :