File: index.js

package info (click to toggle)
node-strip-ansi 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 116 kB
  • ctags: 2
  • sloc: makefile: 4; sh: 2
file content (4 lines) | stat: -rw-r--r-- 150 bytes parent folder | download | duplicates (4)
1
2
3
4
'use strict';
const ansiRegex = require('ansi-regex');

module.exports = input => typeof input === 'string' ? input.replace(ansiRegex(), '') : input;