1 # has-ansi [![Build Status](https://travis-ci.org/sindresorhus/has-ansi.svg?branch=master)](https://travis-ci.org/sindresorhus/has-ansi)
3 > Check if a string has [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
9 $ npm install --save has-ansi
16 var hasAnsi = require('has-ansi');
18 hasAnsi('\u001b[4mcake\u001b[0m');
28 - [has-ansi-cli](https://github.com/sindresorhus/has-ansi-cli) - CLI for this module
29 - [strip-ansi](https://github.com/sindresorhus/strip-ansi) - Strip ANSI escape codes
30 - [ansi-regex](https://github.com/sindresorhus/ansi-regex) - Regular expression for matching ANSI escape codes
31 - [chalk](https://github.com/sindresorhus/chalk) - Terminal string styling done right
36 MIT © [Sindre Sorhus](http://sindresorhus.com)