0.2.3 • Published 3 months ago
@texting/enum-chars v0.2.3
@texting/enum-chars
A function returning string length, s.t. skipping ansi (escape) codes, correcting length of astral symbols.
Features
- ES2015 syntax
Install
$ npm install @texting/enum-chars
Usage
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
Copyright (c) 2019-present, Haoyang (Vincent) Wang
//: <> (Shields)
//: <> (Link)
0.2.3
3 months ago
0.2.2
7 months ago
0.2.1
8 months ago
0.2.0
8 months ago
0.1.12
3 years ago
0.1.13
3 years ago
0.1.10
3 years ago
0.1.11
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.9
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.6
3 years ago
0.1.0
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.0.13
4 years ago
0.0.11
4 years ago
0.0.12
4 years ago
0.0.10
4 years ago
0.0.9
4 years ago
0.0.6
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago