node/deps/npm/node_modules/columnify/width.js

7 lines
140 B
JavaScript

var stripAnsi = require('strip-ansi')
var wcwidth = require('wcwidth')
module.exports = function(str) {
return wcwidth(stripAnsi(str))
}