summaryrefslogtreecommitdiff
path: root/docs/client/modules/_lib_path_.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/client/modules/_lib_path_.html')
-rw-r--r--docs/client/modules/_lib_path_.html132
1 files changed, 130 insertions, 2 deletions
diff --git a/docs/client/modules/_lib_path_.html b/docs/client/modules/_lib_path_.html
index 61de86e..309a501 100644
--- a/docs/client/modules/_lib_path_.html
+++ b/docs/client/modules/_lib_path_.html
@@ -75,6 +75,10 @@
<ul class="tsd-index-list">
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-external"><a href="_lib_path_.html#decodepath" class="tsd-kind-icon">decode<wbr>Path</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-external"><a href="_lib_path_.html#encodepath" class="tsd-kind-icon">encode<wbr>Path</a></li>
+ <li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-external"><a href="_lib_path_.html#getpathsupersets" class="tsd-kind-icon">get<wbr>Path<wbr>Super<wbr>Sets</a></li>
+ <li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-external"><a href="_lib_path_.html#ischildormatch" class="tsd-kind-icon">is<wbr>Child<wbr>OrMatch</a></li>
+ <li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-external"><a href="_lib_path_.html#isrootnode" class="tsd-kind-icon">is<wbr>Root<wbr>Node</a></li>
+ <li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-external"><a href="_lib_path_.html#splitpath" class="tsd-kind-icon">split<wbr>Path</a></li>
</ul>
</section>
</div>
@@ -92,7 +96,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
- <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/690a093/lib/path.ts#L7">lib/path.ts:7</a></li>
+ <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/c973da4/lib/path.ts#L9">lib/path.ts:9</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@@ -115,7 +119,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
- <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/690a093/lib/path.ts#L1">lib/path.ts:1</a></li>
+ <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/c973da4/lib/path.ts#L3">lib/path.ts:3</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@@ -128,6 +132,118 @@
</li>
</ul>
</section>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-external">
+ <a name="getpathsupersets" class="tsd-anchor"></a>
+ <h3><span class="tsd-flag ts-flagConst">Const</span> get<wbr>Path<wbr>Super<wbr>Sets</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-external">
+ <li class="tsd-signature tsd-kind-icon">get<wbr>Path<wbr>Super<wbr>Sets<span class="tsd-signature-symbol">(</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></li>
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ <ul>
+ <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/c973da4/lib/path.ts#L34">lib/path.ts:34</a></li>
+ </ul>
+ </aside>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>path: <span class="tsd-signature-type">string</span></h5>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h4>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-external">
+ <a name="ischildormatch" class="tsd-anchor"></a>
+ <h3><span class="tsd-flag ts-flagConst">Const</span> is<wbr>Child<wbr>OrMatch</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-external">
+ <li class="tsd-signature tsd-kind-icon">is<wbr>Child<wbr>OrMatch<span class="tsd-signature-symbol">(</span>child<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, parent<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ <ul>
+ <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/c973da4/lib/path.ts#L28">lib/path.ts:28</a></li>
+ </ul>
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Check if path1 matches path2,
+ if not, check if its a subpath</p>
+ </div>
+ <p><a href="https://stackoverflow.com/questions/37521893/determine-if-a-path-is-subdirectory-of-another-in-node-js">https://stackoverflow.com/questions/37521893/determine-if-a-path-is-subdirectory-of-another-in-node-js</a></p>
+ </div>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>child: <span class="tsd-signature-type">string</span></h5>
+ </li>
+ <li>
+ <h5>parent: <span class="tsd-signature-type">string</span></h5>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-external">
+ <a name="isrootnode" class="tsd-anchor"></a>
+ <h3><span class="tsd-flag ts-flagConst">Const</span> is<wbr>Root<wbr>Node</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-external">
+ <li class="tsd-signature tsd-kind-icon">is<wbr>Root<wbr>Node<span class="tsd-signature-symbol">(</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ <ul>
+ <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/c973da4/lib/path.ts#L20">lib/path.ts:20</a></li>
+ </ul>
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Identify if a path is a root node</p>
+ </div>
+ </div>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>path: <span class="tsd-signature-type">string</span></h5>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
+ </li>
+ </ul>
+ </section>
+ <section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-external">
+ <a name="splitpath" class="tsd-anchor"></a>
+ <h3><span class="tsd-flag ts-flagConst">Const</span> split<wbr>Path</h3>
+ <ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-external">
+ <li class="tsd-signature tsd-kind-icon">split<wbr>Path<span class="tsd-signature-symbol">(</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></li>
+ </ul>
+ <ul class="tsd-descriptions">
+ <li class="tsd-description">
+ <aside class="tsd-sources">
+ <ul>
+ <li>Defined in <a href="https://github.com/nvandoorn/naive/blob/c973da4/lib/path.ts#L14">lib/path.ts:14</a></li>
+ </ul>
+ </aside>
+ <div class="tsd-comment tsd-typography">
+ <div class="lead">
+ <p>Split path using &quot;/&quot; as a delimiter</p>
+ </div>
+ </div>
+ <h4 class="tsd-parameters-title">Parameters</h4>
+ <ul class="tsd-parameters">
+ <li>
+ <h5>path: <span class="tsd-signature-type">string</span></h5>
+ </li>
+ </ul>
+ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h4>
+ </li>
+ </ul>
+ </section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
@@ -173,6 +289,18 @@
<li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-external">
<a href="_lib_path_.html#encodepath" class="tsd-kind-icon">encode<wbr>Path</a>
</li>
+ <li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-external">
+ <a href="_lib_path_.html#getpathsupersets" class="tsd-kind-icon">get<wbr>Path<wbr>Super<wbr>Sets</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-external">
+ <a href="_lib_path_.html#ischildormatch" class="tsd-kind-icon">is<wbr>Child<wbr>OrMatch</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-external">
+ <a href="_lib_path_.html#isrootnode" class="tsd-kind-icon">is<wbr>Root<wbr>Node</a>
+ </li>
+ <li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-external">
+ <a href="_lib_path_.html#splitpath" class="tsd-kind-icon">split<wbr>Path</a>
+ </li>
</ul>
</nav>
</div>