Skip to main content
Home

@std/text@1.0.16
Built and signed on GitHub Actions

Utilities for working with text

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
5 months ago (1.0.16)

Utility functions for working with text.

import { toCamelCase, compareSimilarity } from "@std/text";
import { assertEquals } from "@std/assert";

assertEquals(toCamelCase("snake_case"), "snakeCase");

const words = ["hi", "help", "hello"];

// Words most similar to "hep" will be at the front
assertEquals(words.sort(compareSimilarity("hep")), ["help", "hi", "hello"]);
Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/text

Import symbol

import * as text from "@std/text";
or

Import directly with a jsr specifier

import * as text from "jsr:@std/text";

Add Package

pnpm i jsr:@std/text
or (using pnpm 10.8 or older)
pnpm dlx jsr add @std/text

Import symbol

import * as text from "@std/text";

Add Package

yarn add jsr:@std/text
or (using Yarn 4.8 or older)
yarn dlx jsr add @std/text

Import symbol

import * as text from "@std/text";

Add Package

vlt install jsr:@std/text

Import symbol

import * as text from "@std/text";

Add Package

npx jsr add @std/text

Import symbol

import * as text from "@std/text";

Add Package

bunx jsr add @std/text

Import symbol

import * as text from "@std/text";