Welcome to mirror list, hosted at ThFree Co, Russian Federation.

width.js « columnify « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a9f5333b40b2fa41d3064c791b4929a073841fa2 (plain)
1
2
3
4
5
6
var stripAnsi = require('strip-ansi')
var wcwidth = require('wcwidth')

module.exports = function(str) {
  return wcwidth(stripAnsi(str))
}