qlr
v0.0.1
Published
Efficient color utility library for terminal strings
Readme
Color Utils
Efficient color utility library for terminal strings.
Installation
bun add color-utilsUsage
import colorUtils from 'color-utils';
console.log(colorUtils.red('This is red text'));
console.log(colorUtils.bold(colorUtils.blue('This is bold blue text')));Running Tests
bun test
Tooling
This project uses the following tools for development:
Bun: A fast all-in-one JavaScript runtime.
Replaces: Node.js, npm, Yarn, and other package managers. Performance Win: Installation Speed: Bun can install packages up to 3x faster than npm and Yarn. Runtime Speed: Bun's JavaScript runtime is up to 3x faster than Node.js for many tasks. Bundle Size: Bun's bundler produces smaller output, often reducing bundle sizes by 30%. Biome: A modern linter and formatter.
Replaces: ESLint, Prettier, and other linting/formatting tools. Performance Win: Linting Speed: Biome can lint files up to 5x faster than ESLint. Formatting Speed: Biome can format files up to 2x faster than Prettier. Memory Usage: Biome uses significantly less memory compared to ESLint and Prettier, making it more efficient for large codebases. By using Bun and Biome, this project benefits from improved performance and a streamlined development workflow, resulting in faster installs, runs, builds, and linting/formatting processes.
