New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@contextjs/text

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contextjs/text

String manipulation utilities for ContextJS applications

latest
Source
npmnpm
Version
25.1.0
Version published
Maintainers
1
Created
Source

@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.

Keywords

text

FAQs

Package last updated on 06 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts