Nimble Polyglot Microcosm

    has-ansi
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/has-ansi package

    2.0.0 • Public • Published

    has-ansi Build Status

    Check if a string has ANSI escape codes

    Install

    $ npm install --save has-ansi
    

    Usage

    var hasAnsi = require('has-ansi');
     
    hasAnsi('\u001b[4mcake\u001b[0m');
    //=> true
     
    hasAnsi('cake');
    //=> false

    Related

    License

    MIT © Sindre Sorhus

    Install

    npm i has-ansi@2.0.0

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • sindresorhus
    • qix