Colored Console Output
Beautiful colored console.log, console.error, console.warn with automatic color coding for better debugging experience.
Execute scripts with environment management, TUI, and colored console output across Bun, Node.js, and Deno
bun add @glyphtek/scriptit
npm install @glyphtek/scriptit
pnpm add @glyphtek/scriptit
yarn add @glyphtek/scriptit
# Run a script with colored console output (colors enabled by default)
scriptit exec my-script.js
# Interactive TUI mode (default when running without arguments)
scriptit run
# Specify runtime
scriptit exec script.ts --runtime bun
# Initialize a new project
scriptit init
import { createScriptRunner } from '@glyphtek/scriptit'
const runner = await createScriptRunner({
scriptsDir: './scripts',
tmpDir: './tmp',
consoleInterception: {
enabled: true,
useColors: true
}
})
await runner.executeScript('my-script.js')
unknown[]
instead of any[]
variables
to define required inputs--env-prompts
flag for on-demand variable prompting"confirm"
type from TypeScript interfacesScriptIt bridges the gap between different JavaScript runtimes, providing a unified interface for script execution with enhanced developer experience. Whether you're prototyping, automating tasks, or building complex workflows, ScriptIt offers the tools you need with the flexibility to work across any runtime.
Just want to try it out? Skip the installation and jump right to the Getting Started guide.