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.bold.red("this is a bold red message"));
    console.log(
      c.bold.yellow.italic(
        "this is a bold yellow italicized message"
      )
    );
    console.log(
      c.green.bold.underline(
        "this is a bold green underlined message"
      )
    );
    
    Docs
    0
  • console.log(
      c.yellow(
        `foo ${c.red.bold("red")} bar ${c.cyan("cyan")} baz`
      )
    );
    
    Docs
    0
  • console.log(c.unstyle(c.blue.bold("foo bar baz")));
    //=> 'foo bar baz'
    //=> 'foo bar baz'
    
    Docs
    0
  • const colors = require("ansi-colors");
    colors.theme({
      danger: colors.red,
      dark: colors.dim.gray,
      disabled: colors.gray,
      em: colors.italic,
      heading: colors.bold.underline,
      info: colors.cyan,
      muted: colors.dim,
      primary: colors.blue,
      strong: colors.bold,
      success: colors.green,
      underline: colors.underline,
      warning: colors.yellow,
    });
    // Now, we can use our custom styles alongside the built-in styles!
    // Now, we can use our custom styles alongside the built-in styles!
    console.log(colors.danger.strong.em("Error!"));
    console.log(colors.warning("Heads up!"));
    console.log(colors.info("Did you know..."));
    console.log(colors.success.bold("It worked!"));
    
    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
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples