1.0.0 • Published 1 year ago

strl v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

strl: String Length

Get the real length of a string

Installation

npm install strl

Usage

const length = require('strl')

console.log(length('\u001B[4mtest\u001B[0m'))
// Output: 4

console.log(length('😀'))
// Output: 1

console.log(length('\u001B[4m😀\u001B[0m'))
// Output: 1
1.0.0

1 year ago