"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/has-ansi/readme.md" (17 Oct 2016, 856 Bytes) of archive /windows/misc/atom-windows.zip:

As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

has-ansi Build Status

Check if a string has ANSI escape codes


$ npm install --save has-ansi


```js var hasAnsi = require(‘has-ansi’);

hasAnsi(‘\u001b[4mcake\u001b[0m’); //=> true

hasAnsi(‘cake’); //=> false ```



MIT © Sindre Sorhus