GITLAB

Nattapon Wongpaet / Hospital

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • hospital
  • node_modules
  • strip-ansi
  • readme.md
  • 33ead877   first code Browse Code »
    Nattapon Wongpaet
    2018-10-12 18:33:32 +0700  
readme.md 801 Bytes
Edit Raw Blame History Permalink

strip-ansi Build Status

Strip ANSI escape codes

Install

$ npm install --save strip-ansi

Usage

var stripAnsi = require('strip-ansi');

stripAnsi('\u001b[4mcake\u001b[0m');
//=> 'cake'

Related

  • strip-ansi-cli - CLI for this module
  • has-ansi - Check if a string has ANSI escape codes
  • ansi-regex - Regular expression for matching ANSI escape codes
  • chalk - Terminal string styling done right

License

MIT © Sindre Sorhus