<spanclass="nx">nconf</span><spanclass="o">=</span><spanclass="nx">module</span><spanclass="p">.</span><spanclass="nx">exports</span><spanclass="o">=</span><spanclass="nb">Object</span><spanclass="p">.</span><spanclass="nx">create</span><spanclass="p">(</span><spanclass="nx">Provider</span><spanclass="p">.</span><spanclass="nx">prototype</span><spanclass="p">);</span></pre></div></td></tr><trid="section-2"><tdclass="docs"><divclass="pilwrap"><aclass="pilcrow"href="#section-2">¶</a></div><p>Use the memory engine by default.</p></td><tdclass="code"><divclass="highlight"><pre><spanclass="nx">nconf</span><spanclass="p">.</span><spanclass="nx">use</span><spanclass="p">(</span><spanclass="s1">'memory'</span><spanclass="p">);</span></pre></div></td></tr><trid="section-3"><tdclass="docs"><divclass="pilwrap"><aclass="pilcrow"href="#section-3">¶</a></div><p>Expose the version from the package.json using <code>pkginfo</code>.</p></td><tdclass="code"><divclass="highlight"><pre><spanclass="nx">require</span><spanclass="p">(</span><spanclass="s1">'pkginfo'</span><spanclass="p">)(</span><spanclass="nx">module</span><spanclass="p">,</span><spanclass="s1">'version'</span><spanclass="p">);</span></pre></div></td></tr><trid="section-4"><tdclass="docs"><divclass="pilwrap"><aclass="pilcrow"href="#section-4">¶</a></div><h3>function path (key)</h3>
<h4>@key {string} The ':' delimited key to split</h4>
<p>Returns a fully-qualified path to a nested nconf key. </p></td><tdclass="code"><divclass="highlight"><pre><spanclass="nx">nconf</span><spanclass="p">.</span><spanclass="nx">path</span><spanclass="o">=</span><spanclass="kd">function</span><spanclass="p">(</span><spanclass="nx">key</span><spanclass="p">)</span><spanclass="p">{</span>
<p>Returns a <code>:</code> joined string from the <code>arguments</code>.</p></td><tdclass="code"><divclass="highlight"><pre><spanclass="nx">nconf</span><spanclass="p">.</span><spanclass="nx">key</span><spanclass="o">=</span><spanclass="kd">function</span><spanclass="p">()</span><spanclass="p">{</span>
<spanclass="p">};</span></pre></div></td></tr><trid="section-6"><tdclass="docs"><divclass="pilwrap"><aclass="pilcrow"href="#section-6">¶</a></div><p>Expose the various components included with nconf</p></td><tdclass="code"><divclass="highlight"><pre><spanclass="nx">nconf</span><spanclass="p">.</span><spanclass="nx">loadFiles</span><spanclass="o">=</span><spanclass="nx">common</span><spanclass="p">.</span><spanclass="nx">loadFiles</span><spanclass="p">;</span>