1
0
mirror of https://github.com/thangisme/notes.git synced 2024-06-06 17:40:50 +00:00
notes/node_modules/strip-ansi/index.js
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00

7 lines
161 B
JavaScript

'use strict';
var ansiRegex = require('ansi-regex')();
module.exports = function (str) {
return typeof str === 'string' ? str.replace(ansiRegex, '') : str;
};