Musique/node_modules/cli-color/strip.js

8 lines
247 B
JavaScript

// Strip ANSI formatting from string
'use strict';
var stringifiable = require('es5-ext/object/validate-stringifiable')
, r = require('ansi-regex')();
module.exports = function (str) { return stringifiable(str).replace(r, ''); };