kreda
v0.1.0
Published
Chalk-like API for Node native terminal text styling
Downloads
2
Readme
kreda
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.