nuru
TypeScript icon, indicating that this package has built-in type declarations

4.0.3 • Public • Published

Nuru

A library for quick CLI development in TypeScript.

Discord server npm version npm downloads

Documentation live at https://s0n1c.ca/nuru

Installation

% bun i nuru

Basic 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.

Dependents (0)

Package Sidebar

Install

npm i nuru

Weekly Downloads

3

Version

4.0.3

License

GPL-3.0-only

Unpacked Size

50.6 kB

Total Files

9

Last publish

Collaborators

  • s0n1c