# @texting/bracket

> Add parenthesis/bracket/brace/angle-bracket to string

Latest version **0.2.6** (published 2025-03-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @texting/bracket
pnpm add @texting/bracket
yarn add @texting/bracket
bun add @texting/bracket
```

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.6 |
| Published | 2025-03-29 |
| First published | 2021-03-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=22.0.0 |
| Dependencies | 1 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hoyeung Wong |
| Maintainers | hoyeung |
| Keywords | test, console, debug, print |

## Links

- npm: https://www.npmjs.com/package/@texting/bracket
- Repository: https://github.com/gadge/spare
- Homepage: https://github.com/gadge/spare#readme
- Issues: https://github.com/gadge/spare
- npm.io page: https://npm.io/package/@texting/bracket

## Dependencies (1)

- [@texting/enum-brackets](https://npm.io/package/@texting/enum-brackets.md) ^0.2.6

## Recent versions

- 0.2.6 (latest) — 2025-03-29
- 0.2.5 — 2025-03-28
- 0.2.4 — 2025-03-28
- 0.2.3 — 2025-03-16
- 0.2.2 — 2024-11-11
- 0.2.1 — 2024-10-27
- 0.2.0 — 2024-10-27
- 0.1.13 — 2022-08-23
- 0.1.12 — 2022-08-22
- 0.1.11 — 2022-08-08
- 0.1.10 — 2022-08-08
- 0.1.9 — 2022-08-04
- 0.1.8 — 2022-08-04
- 0.1.7 — 2022-07-07
- 0.1.6 — 2022-06-10
- … 16 more at https://npm.io/package/@texting/bracket/versions

## README

## @texting/quote

A function returning string length, s.t. skipping ansi (escape) codes, correcting length of astral symbols.

[![npm version][npm-image]][npm-url]
[![npm quality][quality-image]][quality-url]
[![npm download][download-image]][npm-url]
[![npm total-download][total-download-image]][npm-url]
[![size][size]][size-url]
[![github commit activity][commit-image]][github-url]
[![npm license][license-image]][npm-url]

## Features

- ES2015 syntax

## Install

```console
$ npm install @texting/quote
```

## Usage

```js
import { quote } from '@texting/quote'
const list = [
  'tolstoy',
  '\u001b[3;4;31mhatsu\u001b[0m',
  '\u{1F3C3}2\u{1F525}7',
]
for (let tx of list) {
  console.log(`[${tx}] [length] (${tx.length}) [quote] (${quote(tx)})`)
}
```

## Meta

[LICENSE (MIT)](/LICENSE)

Copyright (c) 2019-present, Haoyang (Vincent) Wang

[//]: <> (Shields)

[npm-image]: https://img.shields.io/npm/v/@texting/bracket.svg?style=flat-square

[quality-image]: http://npm.packagequality.com/shield/@texting/bracket.svg?style=flat-square

[download-image]: https://img.shields.io/npm/dm/@texting/bracket.svg?style=flat-square

[total-download-image]:https://img.shields.io/npm/dt/@texting/bracket.svg?style=flat-square

[license-image]: https://img.shields.io/npm/l/@texting/bracket.svg?style=flat-square

[commit-image]: https://img.shields.io/github/commit-activity/y/hoyeungw/spare/bracket?style=flat-square

[size]: https://flat.badgen.net/packagephobia/install/@texting/bracket

[//]: <> (Link)

[npm-url]: https://npmjs.org/package/@texting/bracket

[quality-url]: http://packagequality.com/#?package=@texting/bracket

[github-url]: https://github.com/hoyeungw/@texting/bracket

[size-url]: https://packagephobia.now.sh/result?p=@texting/bracket

---
_Source: https://npm.io/package/@texting/bracket · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
