<!DOCTYPE html><htmlclass="default"><head><metacharSet="utf-8"/><metahttp-equiv="x-ua-compatible"content="IE=edge"/><title>cath</title><metaname="description"content="Documentation for cath"/><metaname="viewport"content="width=device-width, initial-scale=1"/><linkrel="stylesheet"href="assets/style.css"/><linkrel="stylesheet"href="assets/highlight.css"/><scriptasyncsrc="assets/search.js"id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme")||"os")</script><header><divclass="tsd-page-toolbar"><divclass="container"><divclass="table-wrap"><divclass="table-cell"id="tsd-search"data-base="."><divclass="field"><labelfor="tsd-search-field"class="tsd-widget search no-caption">Search</label><inputtype="text"id="tsd-search-field"/></div><ulclass="results"><liclass="state loading">Preparing search index...</li><liclass="state failure">The search index is not available</li></ul><ahref="index.html"class="title">cath</a></div><divclass="table-cell"id="tsd-widgets"><divid="tsd-filter"><ahref="#"class="tsd-widget options no-caption"data-toggle="options">Options</a><divclass="tsd-filter-group"><divclass="tsd-select"id="tsd-filter-visibility"><spanclass="tsd-select-label">All</span><ulclass="tsd-select-list"><lidata-value="public">Public</li><lidata-value="protected">Public/Protected</li><lidata-value="private"class="selected">All</li></ul></div><inputtype="checkbox"id="tsd-filter-inherited"checked/><labelclass="tsd-widget"for="tsd-filter-inherited">Inherited</label><inputtype="checkbox"id="tsd-filter-externals"checked/><labelclass="tsd-widget"for="tsd-filter-externals">Externals</label></div></div><ahref="#"class="tsd-widget menu no-caption"data-toggle="menu">Menu</a></div></div></div></div><divclass="tsd-page-title"><divclass="container"><h1>cath</h1></div></div></header><divclass="container container-main"><divclass="row"><divclass="col-8 col-content"><divclass="tsd-panel tsd-typography"><h1align="center"> CATH </h1>
<p><strong>Cath</strong> is a powerful <ahref="https://nodejs.org">Node.js</a> module that can easily interact and get data from the Cath API
If you like this package, feel free to <imgsrc ="https://discord.com/assets/141d49436743034a59dec6bd5618675d.svg"width ="16"><strong>Star</strong> and <strong>fork</strong> this repository.<br><br></p>
<pre><codeclass="language-js"><spanclass="hl-1">const</span><spanclass="hl-0"></span><spanclass="hl-2">cath</span><spanclass="hl-0"> = </span><spanclass="hl-3">require</span><spanclass="hl-0">(</span><spanclass="hl-4">"cath"</span><spanclass="hl-0">);</span><br/><br/><spanclass="hl-1">const</span><spanclass="hl-0"></span><spanclass="hl-2">reddit_data</span><spanclass="hl-0"> = </span><spanclass="hl-5">await</span><spanclass="hl-0"></span><spanclass="hl-6">cath</span><spanclass="hl-0">.</span><spanclass="hl-3">getreddit</span><spanclass="hl-0">(</span><spanclass="hl-4">"meme"</span><spanclass="hl-0">);</span><br/><spanclass="hl-6">console</span><spanclass="hl-0">.</span><spanclass="hl-3">log</span><spanclass="hl-0">(</span><spanclass="hl-6">reddit_data</span><spanclass="hl-0">); </span><spanclass="hl-7">// returns an object</span><br/><br/><spanclass="hl-1">const</span><spanclass="hl-0"></span><spanclass="hl-2">answer</span><spanclass="hl-0"> = </span><spanclass="hl-5">await</span><spanclass="hl-0"></span><spanclass="hl-6">cath</span><spanclass="hl-0">.</span><spanclass="hl-3">random8ball</span><spanclass="hl-0">();</span><br/><spanclass="hl-6">console</span><spanclass="hl-0">.</span><spanclass="hl-3">log</span><spanclass="hl-0">(</span><spanclass="hl-6">answer</span><spanclass="hl-0">); </span><spanclass="hl-7">// a random answer from 8ball</span>