25.0.0-beta.3 • Published 6 months ago
@contextjs/text v25.0.0-beta.3
@contextjs/text
String manipulation utilities for ContextJS applications
Features
- Chainable, immutable-safe
StringBuilderimplementation - Efficient string concatenation using segment arrays
- Support for insertion, removal, and replacement
- Fluent
appendFormat,appendLine,clear, andclonemethods - Implicit string conversion with
Symbol.toPrimitive - Test-driven and zero-runtime dependency
Installation
npm i @contextjs/textUsage Example
import { StringBuilder } from "@contextjs/text";
const builder = new StringBuilder();
builder
.append("Hello")
.append(", ")
.appendFormat("{0}!", "world");
console.log(builder.toString()); // "Hello, world!"API Reference
For detailed API documentation, please refer to the API Reference.
25.0.0-beta.3
6 months ago
25.0.0-beta.2
6 months ago
25.0.0-beta.1
6 months ago
0.5.3-alpha.1
6 months ago
0.5.2-alpha.1
6 months ago
0.5.1-alpha.1
6 months ago
0.5.0-alpha.1
7 months ago