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'
    <pre class="typing-tooltip"><code data-language="javascript" class="language-javascript"><span class="token keyword">var</span> <span class="token builtin">console</span><span class="token operator">:</span> Console</code></pre>
    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'));
    <pre class="typing-tooltip"><code data-language="javascript" class="language-javascript"><span class="token keyword">var</span> <span class="token builtin">console</span><span class="token operator">:</span> Console</code></pre>
    Docs
    0
  • console.log(c.yellow(`foo ${c.red.bold('red')} bar ${c.cyan('cyan')} baz`));
    <pre class="typing-tooltip"><code data-language="javascript" class="language-javascript"><span class="token keyword">var</span> <span class="token builtin">console</span><span class="token operator">:</span> Console</code></pre>
    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'));
    <pre class="typing-tooltip"><code data-language="javascript" class="language-javascript"><span class="token keyword">var</span> <span class="token builtin">console</span><span class="token operator">:</span> Console</code></pre>
    Docs
    0
  • module.exports.printItem = (item, id, indent) => {
      
      //...
    if (item.status === 'completed') {
        
        //...
    } else if (item.status === 'in_progress') {
        draft(indent,
          colors.yellow(`${figures.play} ${item.name}`),
          colors.grey(`${moment().diff(moment(item.started_at), 'seconds')}s`)
        )
      } else if (item.status === 'queued') {
        
        //...
    } else {
        if (item) draft(indent, item)
        else draft(indent, ' ')
      }
    }
    
    <pre class="typing-tooltip"><code data-language="javascript" class="language-javascript"><span class="token keyword">var</span> module<span class="token operator">:</span> <span class="token punctuation">{</span> exports<span class="token operator">:</span> <span class="token keyword">typeof</span> module<span class="token punctuation">.</span>exports<span class="token punctuation">;</span> <span class="token punctuation">}</span></code></pre>
    /abskmj/hukum MIT
    0
  • const retryStr = `${colors.yellow(this.warn)} ${
        this.warn === 1 ? "retry" : "retries"
      }`;
    
      
    <pre class="typing-tooltip"><code data-language="javascript" class="language-javascript"><span class="token keyword">const</span> retryStr<span class="token operator">:</span> <span class="token builtin">string</span></code></pre>
    /Kumar-Saksham/CSMM-CLI MIT
    0
  • function getMessage(msg) {
      return colors.yellow(msg);
    }
    
    
    <pre class="typing-tooltip"><code data-language="javascript" class="language-javascript"><span class="token keyword">function</span> <span class="token function">getMessage</span><span class="token punctuation">(</span><span class="token parameter">msg<span class="token operator">:</span> any</span><span class="token punctuation">)</span><span class="token operator">:</span> <span class="token builtin">string</span></code></pre>
    /balmjs/balm mit
    0
  • console.log(c.yellow(`foo ${c.red.bold('red')} bar ${c.cyan('cyan')} baz`));
    <pre class="typing-tooltip"><code data-language="javascript" class="language-javascript"><span class="token keyword">var</span> <span class="token builtin">console</span><span class="token operator">:</span> Console</code></pre>
    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!'));
    <pre class="typing-tooltip"><code data-language="javascript" class="language-javascript"><span class="token keyword">import</span> c</code></pre>
    Docs
    0
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples