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