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

  • 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 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 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
  • console.log(c.unstyle(c.blue.bold("foo bar baz")));
    //=> 'foo bar baz'
    //=> 'foo bar baz'
    
    Docs
    0
  • 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
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples