Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # strip-ansi [![Build Status](https://travis-ci.org/chalk/strip-ansi.svg?branch=master)](https://travis-ci.org/chalk/strip-ansi)
  2. > Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string
  3. ---
  4. <div align="center">
  5. <b>
  6. <a href="https://tidelift.com/subscription/pkg/npm-strip-ansi?utm_source=npm-strip-ansi&utm_medium=referral&utm_campaign=readme">Get professional support for 'strip-ansi' with a Tidelift subscription</a>
  7. </b>
  8. <br>
  9. <sub>
  10. Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
  11. </sub>
  12. </div>
  13. ---
  14. ## Install
  15. ```
  16. $ npm install strip-ansi
  17. ```
  18. ## Usage
  19. ```js
  20. const stripAnsi = require('strip-ansi');
  21. stripAnsi('\u001B[4mUnicorn\u001B[0m');
  22. //=> 'Unicorn'
  23. stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
  24. //=> 'Click'
  25. ```
  26. ## Security
  27. To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
  28. ## Related
  29. - [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module
  30. - [strip-ansi-stream](https://github.com/chalk/strip-ansi-stream) - Streaming version of this module
  31. - [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
  32. - [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
  33. - [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
  34. ## Maintainers
  35. - [Sindre Sorhus](https://github.com/sindresorhus)
  36. - [Josh Junon](https://github.com/qix-)
  37. ## License
  38. MIT