ry and required dependencies</p>
<p><code>npm install @pnp/logging @pnp/core @pnp/queryable @pnp/sp --save</code></p>
<p>Import the library into your application and access the root sp object</p>
<div class="codehilite"><pre><span></span><span class="kr">import</span> <span class="p">{</span> <span class="nx">sp</span> <span class="p">}</span> <span class="nx">from</span> <span class="s2">&quot;@pnp/sp&quot;</span><span class="p">;</span>

<span class="p">(</span><span class="kd">function</span> <span class