index.js 180 B

123456
  1. 'use strict';
  2. const stripAnsi = require('strip-ansi');
  3. const astralRegex = require('astral-regex');
  4. module.exports = input => stripAnsi(input).replace(astralRegex(), ' ').length;