How to use where clause in Knex
Create refunds with Stripe
Load HTML with Cheerio
How to send POST request with Axios
Find intersection of array in Lodash
Powered by Official white Bloop logo with a period

Terms / Privacy / Search / Support

  • console.log(c.unstyle(c.blue.bold("foo bar baz")));
    //=> 'foo bar baz'
    //=> 'foo bar baz'
    
    Docs
    0
  • console.log(c.unstyle(c.blue.bold("foo bar baz")));
    //=> 'foo bar baz'
    //=> 'foo bar baz'
    
    Docs
    0
  • const c = require("ansi-colors");
    console.log(c.red("This is a red string!"));
    console.log(c.green("This is a red string!"));
    console.log(c.cyan("This is a cyan string!"));
    console.log(c.yellow("This is a yellow string!"));
    
    Docs
    0
  • console.log(
      c.yellow(
        `foo ${c.red.bold("red")} bar ${c.cyan("cyan")} baz`
      )
    );
    
    Docs
    0
  • const c = require("ansi-colors");
    console.log(c.red("This is a red string!"));
    console.log(c.green("This is a red string!"));
    console.log(c.cyan("This is a cyan string!"));
    console.log(c.yellow("This is a yellow string!"));
    
    Docs
    0
  • const c = require("ansi-colors");
    // disable colors manually
    // disable colors manually
    c.enabled = false;
    // or use a library to automatically detect support
    // or use a library to automatically detect support
    c.enabled = require("color-support").hasBasic;
    console.log(
      c.red(
        "I will only be colored red if the terminal supports colors"
      )
    );
    
    Docs
    0
  • const c = require("ansi-colors");
    console.log(c.red("This is a red string!"));
    console.log(c.green("This is a red string!"));
    console.log(c.cyan("This is a cyan string!"));
    console.log(c.yellow("This is a yellow string!"));
    
    Docs
    0
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples