0.16.1 • Published 17 days ago

@spare/charset v0.16.1

Weekly downloads
11
License
MIT
Repository
github
Last release
17 days ago

@spare/charset

A function returning string length, s.t. skipping ansi (escape) codes, correcting length of astral symbols.

npm version npm quality npm download npm total-download size github commit activity npm license

Features

  • ES2015 syntax

Install

$ npm install @spare/charset

Usage

import { lange } from '@spare/charset'
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)

Copyright (c) 2019-present, Haoyang (Vincent) Wang

//: <> (Shields)

//: <> (Link)

0.16.0

20 days ago

0.16.1

17 days ago

0.15.16

2 years ago

0.15.10

2 years ago

0.15.13

2 years ago

0.15.14

2 years ago

0.15.11

2 years ago

0.15.12

2 years ago

0.15.15

2 years ago

0.15.9

2 years ago

0.15.4

2 years ago

0.15.6

2 years ago

0.15.7

2 years ago

0.15.8

2 years ago

0.15.0

2 years ago

0.15.1

2 years ago

0.15.2

2 years ago

0.14.24

2 years ago

0.14.28

2 years ago

0.14.27

2 years ago

0.14.26

2 years ago

0.14.29

2 years ago

0.14.11

2 years ago

0.14.10

2 years ago

0.14.17

2 years ago

0.14.19

2 years ago

0.14.20

2 years ago

0.14.23

2 years ago

0.14.22

2 years ago

0.14.21

2 years ago

0.13.12

3 years ago

0.13.11

3 years ago

0.13.16

3 years ago

0.13.15

3 years ago

0.13.14

3 years ago

0.13.13

3 years ago

0.14.5

2 years ago

0.14.7

2 years ago

0.14.9

2 years ago

0.14.0

3 years ago

0.14.1

3 years ago

0.14.2

2 years ago

0.14.3

2 years ago

0.14.4

2 years ago

0.13.6

3 years ago

0.13.7

3 years ago

0.13.8

3 years ago

0.13.9

3 years ago

0.13.3

3 years ago

0.13.4

3 years ago

0.13.5

3 years ago

0.13.0

3 years ago

0.13.1

3 years ago

0.13.2

3 years ago

0.12.5

3 years ago

0.12.2

3 years ago

0.12.3

3 years ago

0.12.4

3 years ago

0.12.0

3 years ago

0.11.21

3 years ago

0.11.22

3 years ago

0.11.20

3 years ago

0.11.19

3 years ago

0.11.18

3 years ago

0.11.17

3 years ago

0.11.16

3 years ago

0.11.15

4 years ago

0.11.14

4 years ago

0.11.13

4 years ago

0.11.12

4 years ago

0.11.11

4 years ago

0.11.8

4 years ago

0.11.10

4 years ago

0.11.7

4 years ago

0.11.6

4 years ago

0.11.5

4 years ago

0.11.3

4 years ago

0.11.4

4 years ago

0.11.0

4 years ago

0.11.1

4 years ago

0.10.14

4 years ago

0.10.12

4 years ago

0.10.9

4 years ago

0.10.8

4 years ago

0.10.6

4 years ago

0.10.5

4 years ago

0.10.4

4 years ago

0.10.2

4 years ago

0.10.3

4 years ago

0.10.1

4 years ago

0.10.0

4 years ago

0.9.9

4 years ago

0.9.8

4 years ago

0.9.7

4 years ago

0.9.6

4 years ago

0.9.5

4 years ago

0.9.4

4 years ago

0.9.3

4 years ago

0.9.3-alpha.1

4 years ago

0.9.3-alpha.0

4 years ago

0.9.2

4 years ago

0.9.0

4 years ago

0.9.1

4 years ago

0.9.0-alpha.0

4 years ago