Musique/node_modules/cli-color/get-stripped-length.js

11 lines
165 B
JavaScript
Raw Normal View History

'use strict';
/*
* get actual length of ANSI-formatted string
*/
var strip = require('./strip');
module.exports = function (str) {
return strip(str).length;
};