Calculates width of given string. Treat ambiguous-width characters as fullwidth (= 2
) by default.
USAGE
var stringWidth = ;; //=> 5; //=> 10; //=> 5; //=> 6// stringWidth.narrow treats ambiguous-width characters as narrow (= `1`)stringWidth; //=> 5
INSTALL
$ npm install --save-dev power-assert-util-string-width
AUTHOR
LICENSE
Licensed under the MIT license.