Skip to content

itss0n1c/nuru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A library for quick CLI development in TypeScript.

Resources

License

Stars

Watchers

Forks

Contributors