# @texting/enum-chars

> Chars

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

## Install

```sh
npm install @texting/enum-chars
pnpm add @texting/enum-chars
yarn add @texting/enum-chars
bun add @texting/enum-chars
```

## 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 |
| Dependencies | 0 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Hoyeung Wong |
| Maintainers | hoyeung |
| Keywords | test, console, debug, print |

## Links

- npm: https://www.npmjs.com/package/@texting/enum-chars
- 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/enum-chars

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## 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/enum-chars/versions

## README

## @texting/enum-chars

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/enum-chars
```

## Usage

```js
import { lange } from '@texting/enum-chars'
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}) [lange] (${lange(tx)})`)
}
```

## Meta

[LICENSE (MIT)](/LICENSE)

Copyright (c) 2019-present, Haoyang (Vincent) Wang

[//]: <> (Shields)

[npm-image]: https://img.shields.io/npm/v/@texting/enum-chars.svg?style=flat-square

[quality-image]: http://npm.packagequality.com/shield/@texting/enum-chars.svg?style=flat-square

[download-image]: https://img.shields.io/npm/dm/@texting/enum-chars.svg?style=flat-square

[total-download-image]:https://img.shields.io/npm/dt/@texting/enum-chars.svg?style=flat-square

[license-image]: https://img.shields.io/npm/l/@texting/enum-chars.svg?style=flat-square

[commit-image]: https://img.shields.io/github/commit-activity/y/hoyeungw/spare/enum-chars?style=flat-square

[size]: https://flat.badgen.net/packagephobia/install/@texting/enum-chars

[//]: <> (Link)

[npm-url]: https://npmjs.org/package/@texting/enum-chars

[quality-url]: http://packagequality.com/#?package=@texting/enum-chars

[github-url]: https://github.com/hoyeungw/@texting/enum-chars

[size-url]: https://packagephobia.now.sh/result?p=@texting/enum-chars

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