0.1.0 • Published 2 months ago

kreda v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

kreda

npm

Chalk-like API for Node native terminal text styling.

⚠️ Requires Node >-21.7.0. The feature is marked as experimental – that means this package also should be treated as such.

Installation

npm install kreda --save

Usage

import kreda from 'kreda';

console.log( kreda.blue( 'Some blue text' ) );
console.log( kreda.bgBlack.green.underline( 'Some green underlined text on a black background' ) );
console.log( kreda.blue( 'Hello,', 'world!' ) );
// ↑ The same as
console.log( kreda.blue( 'Hello, world!' ) );

Refer to Node's documentation for list of all available modifiers.

License

See LICENSE file for details.

0.1.0

2 months ago