source:
node_modules/strip-ansi/index.js@
81bc7da
| Last change on this file since 81bc7da was 81bc7da, checked in by , 3 months ago | |
|---|---|
|
|
| File size: 154 bytes | |
| Rev | Line | |
|---|---|---|
| [81bc7da] | 1 | 'use strict'; |
| 2 | const ansiRegex = require('ansi-regex'); | |
| 3 | ||
| 4 | module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string; |
Note:
See TracBrowser
for help on using the repository browser.
