Modules@robinpath/color

@robinpath/color

0.1.0Public

Terminal ANSI color utilities: red, green, blue, bold, underline, RGB, and more.

@robinpath/color

Terminal ANSI color utilities: red, green, blue, bold, underline, RGB, and more.

Category Functions Auth License

Why use this module?

Use the color module to integrate utility capabilities into your RobinPath scripts.

Installation

npm install @robinpath/color

Quick Start

No credentials needed — start using it right away:

set $msg as color.green "success"
print $msg

Available Functions

FunctionDescription
color.redWrap text in red
color.greenWrap text in green
color.blueWrap text in blue
color.yellowWrap text in yellow
color.cyanWrap text in cyan
color.magentaWrap text in magenta
color.whiteWrap text in white
color.grayWrap text in gray
color.boldWrap text in bold
color.dimWrap text in dim
color.italicWrap text in italic
color.underlineWrap text with underline
color.strikethroughWrap text with strikethrough
color.bgRedWrap text with red background
color.bgGreenWrap text with green background
color.bgBlueWrap text with blue background
color.stripStrip all ANSI escape codes from text
color.rgbWrap text with custom RGB foreground color

Examples

Wrap text in green foreground color.

set $msg as color.green "success"
print $msg

Wrap text in blue foreground color.

set $msg as color.blue "info"
print $msg

Wrap text in yellow foreground color.

set $msg as color.yellow "warning"
print $msg

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/color";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  set $msg as color.green "success"
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT

Versions (1)

VersionTagPublished
0.1.0latestyesterday
Install
$ robinpath install @robinpath/color
Version0.1.0
LicenseMIT
Unpacked Size4.9 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

utilities