nuru
v4.0.3
Published
A library for quick CLI development in TypeScript.
Readme
Nuru
A library for quick CLI development in TypeScript.
Documentation live at https://s0n1c.ca/nuru
Installation
% bun i nuruBasic Usage
// index.ts
import { Command, Nuru } from "nuru";
// prints what you pass to it
const testDefaultCommand = new Command({
name: "test",
description: "a default test command",
}).set_handler((inst, args) => args.join(" "));
await new Nuru({
args: {
"-o": String,
"-d": String,
},
})
.register_commands([testDefaultCommand])
.handle();Running this script with bun index.ts test hello world will output hello world.
