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

  • import styles from 'ansi-styles';
    
    styles.color.ansi(styles.rgbToAnsi(100, 200, 15)); // RGB to 16 color ansi foreground code
    styles.bgColor.ansi(styles.hexToAnsi('#C0FFEE')); // HEX to 16 color ansi foreground code
    
    styles.color.ansi256(styles.rgbToAnsi256(100, 200, 15)); // RGB to 256 color ansi foreground code
    styles.bgColor.ansi256(styles.hexToAnsi256('#C0FFEE')); // HEX to 256 color ansi foreground code
    
    styles.color.ansi16m(100, 200, 15); // RGB to 16 million color foreground code
    styles.bgColor.ansi16m(...styles.hexToRgb('#C0FFEE')); // Hex (RGB) to 16 million color foreground code
    Docs
  • import styles from 'ansi-styles';
    
    console.log(styles.codes.get(36));
    //=> 39
    Docs
  • 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
  • ansiHTML.reset();
    Docs
  • var ansiHTML = require('ansi-html');
    var str = ansiHTML('[ANSI_TEXT]');
    Docs
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples