25.0.0-beta.3 • Published 5 months ago

@contextjs/text v25.0.0-beta.3

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

@contextjs/text

Tests  npm  License

String manipulation utilities for ContextJS applications

Features

  • Chainable, immutable-safe StringBuilder implementation
  • Efficient string concatenation using segment arrays
  • Support for insertion, removal, and replacement
  • Fluent appendFormat, appendLine, clear, and clone methods
  • Implicit string conversion with Symbol.toPrimitive
  • Test-driven and zero-runtime dependency

Installation

npm i @contextjs/text

Usage 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

5 months ago

25.0.0-beta.2

5 months ago

25.0.0-beta.1

5 months ago

0.5.3-alpha.1

5 months ago

0.5.2-alpha.1

5 months ago

0.5.1-alpha.1

5 months ago

0.5.0-alpha.1

6 months ago