ContentMine/thresher

View on GitHub
doc/index.html

Summary

Maintainability
Test Coverage
<!DOCTYPE html><html lang="en"><head><title>index</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content=""><meta name="groc-document-path" content="index"><meta name="groc-project-path" content="lib/index.js"><link rel="stylesheet" type="text/css" media="all" href="assets/style.css"><script type="text/javascript" src="assets/behavior.js"></script><body><div id="meta"><div class="file-path">lib/index.js</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="kd">var</span> <span class="nx">thresher</span> <span class="o">=</span> <span class="nx">module</span><span class="p">.</span><span class="nx">exports</span><span class="p">;</span>
<span class="kd">var</span> <span class="nx">winston</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;winston&#39;</span><span class="p">);</span>

<span class="nx">log</span> <span class="o">=</span> <span class="k">new</span> <span class="p">(</span><span class="nx">winston</span><span class="p">.</span><span class="nx">Logger</span><span class="p">)({</span>
  <span class="nx">transports</span><span class="o">:</span> <span class="p">[</span>
    <span class="k">new</span> <span class="p">(</span><span class="nx">winston</span><span class="p">.</span><span class="nx">transports</span><span class="p">.</span><span class="nx">Console</span><span class="p">)({</span> <span class="nx">level</span><span class="o">:</span> <span class="s1">&#39;info&#39;</span> <span class="p">})</span>
  <span class="p">]</span>
<span class="p">});</span>
<span class="nx">log</span><span class="p">.</span><span class="nx">cli</span><span class="p">();</span>

<span class="nx">thresher</span><span class="p">.</span><span class="nx">deps</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;./dependencies.js&#39;</span><span class="p">);</span>
<span class="nx">thresher</span><span class="p">.</span><span class="nx">dom</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;./dom.js&#39;</span><span class="p">);</span>
<span class="nx">thresher</span><span class="p">.</span><span class="nx">file</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;./file.js&#39;</span><span class="p">);</span>
<span class="nx">thresher</span><span class="p">.</span><span class="nx">url</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;./url.js&#39;</span><span class="p">);</span>
<span class="nx">thresher</span><span class="p">.</span><span class="nx">download</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;./download.js&#39;</span><span class="p">);</span>
<span class="nx">thresher</span><span class="p">.</span><span class="nx">Ticker</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;./ticker.js&#39;</span><span class="p">);</span>
<span class="nx">thresher</span><span class="p">.</span><span class="nx">Scraper</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;./scraper.js&#39;</span><span class="p">);</span>
<span class="nx">thresher</span><span class="p">.</span><span class="nx">Thresher</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;./thresher.js&#39;</span><span class="p">);</span>
<span class="nx">thresher</span><span class="p">.</span><span class="nx">ScraperBox</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">&#39;./scraperBox.js&#39;</span><span class="p">);</span></div></div></div></div></body></html>