Skip to content

Commit

Permalink
chore: build docs
Browse files Browse the repository at this point in the history
  • Loading branch information
WDH-Bot committed Dec 22, 2023
1 parent 73a18c7 commit 84dcd3f
Showing 1 changed file with 204 additions and 10 deletions.
214 changes: 204 additions & 10 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset='utf-8'>
<title>william.js 1.2.2 | Documentation</title>
<title>william.js 1.3.0 | Documentation</title>
<meta name='description' content='A super simple npm package with lots of utilities.'>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<link href='assets/bass.css' rel='stylesheet'>
Expand All @@ -15,7 +15,7 @@
<div id='split-left' class='overflow-auto fs0 height-viewport-100'>
<div class='py1 px2'>
<h3 class='mb0 no-anchor'>william.js</h3>
<div class='mb1'><code>1.2.2</code></div>
<div class='mb1'><code>1.3.0</code></div>
<input
placeholder='Filter'
id='filter-input'
Expand Down Expand Up @@ -107,6 +107,26 @@ <h3 class='mb0 no-anchor'>william.js</h3>

</li>


<li><a
href='#webhook'
class="">
webhook

</a>

</li>


<li><a
href='#email'
class="">
email

</a>

</li>

</ul>
</div>
<div class='mt1 h6 quiet'>
Expand All @@ -127,7 +147,7 @@ <h3 class='fl m0' id='cap'>
</h3>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/wdhdev/william.js/blob/7628506073d0d8ebfb330a07ded8d57c0cb25b65/src/functions/cap.js#L17-L32'>
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/wdhdev/william.js/blob/73a18c7221317634af81d6f79db4653c6ccfade5/src/functions/cap.js#L17-L32'>
<span>src/functions/cap.js</span>
</a>

Expand Down Expand Up @@ -233,7 +253,7 @@ <h3 class='fl m0' id='gravatar'>
</h3>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/wdhdev/william.js/blob/7628506073d0d8ebfb330a07ded8d57c0cb25b65/src/functions/gravatar.js#L14-L25'>
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/wdhdev/william.js/blob/73a18c7221317634af81d6f79db4653c6ccfade5/src/functions/gravatar.js#L14-L25'>
<span>src/functions/gravatar.js</span>
</a>

Expand Down Expand Up @@ -317,7 +337,7 @@ <h3 class='fl m0' id='id'>
</h3>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/wdhdev/william.js/blob/7628506073d0d8ebfb330a07ded8d57c0cb25b65/src/functions/id.js#L37-L61'>
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/wdhdev/william.js/blob/73a18c7221317634af81d6f79db4653c6ccfade5/src/functions/id.js#L37-L61'>
<span>src/functions/id.js</span>
</a>

Expand Down Expand Up @@ -443,7 +463,7 @@ <h3 class='fl m0' id='random'>
</h3>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/wdhdev/william.js/blob/7628506073d0d8ebfb330a07ded8d57c0cb25b65/src/functions/random.js#L13-L25'>
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/wdhdev/william.js/blob/73a18c7221317634af81d6f79db4653c6ccfade5/src/functions/random.js#L13-L25'>
<span>src/functions/random.js</span>
</a>

Expand Down Expand Up @@ -536,7 +556,7 @@ <h3 class='fl m0' id='getdirs'>
</h3>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/wdhdev/william.js/blob/7628506073d0d8ebfb330a07ded8d57c0cb25b65/src/util/getDirs.js#L14-L22'>
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/wdhdev/william.js/blob/73a18c7221317634af81d6f79db4653c6ccfade5/src/util/getDirs.js#L14-L22'>
<span>src/util/getDirs.js</span>
</a>

Expand Down Expand Up @@ -620,7 +640,7 @@ <h3 class='fl m0' id='md5hex'>
</h3>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/wdhdev/william.js/blob/7628506073d0d8ebfb330a07ded8d57c0cb25b65/src/util/md5Hex.js#L20-L40'>
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/wdhdev/william.js/blob/73a18c7221317634af81d6f79db4653c6ccfade5/src/util/md5Hex.js#L20-L40'>
<span>src/util/md5Hex.js</span>
</a>

Expand Down Expand Up @@ -707,7 +727,7 @@ <h3 class='fl m0' id='removeduplicates'>
</h3>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/wdhdev/william.js/blob/7628506073d0d8ebfb330a07ded8d57c0cb25b65/src/util/removeDuplicates.js#L12-L18'>
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/wdhdev/william.js/blob/73a18c7221317634af81d6f79db4653c6ccfade5/src/util/removeDuplicates.js#L12-L18'>
<span>src/util/removeDuplicates.js</span>
</a>

Expand Down Expand Up @@ -791,7 +811,7 @@ <h3 class='fl m0' id='uuid'>
</h3>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/wdhdev/william.js/blob/7628506073d0d8ebfb330a07ded8d57c0cb25b65/src/functions/uuid.js#L23-L38'>
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/wdhdev/william.js/blob/73a18c7221317634af81d6f79db4653c6ccfade5/src/functions/uuid.js#L23-L38'>
<span>src/functions/uuid.js</span>
</a>

Expand Down Expand Up @@ -870,6 +890,180 @@ <h3 class='fl m0' id='uuid'>



</section>




<section class='p2 mb2 clearfix bg-white minishadow'>


<div class='clearfix'>

<h3 class='fl m0' id='webhook'>
webhook
</h3>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/wdhdev/william.js/blob/73a18c7221317634af81d6f79db4653c6ccfade5/src/validate/discord.js#L15-L23'>
<span>src/validate/discord.js</span>
</a>

</div>



<div class='pre p1 fill-light mt0'>webhook(url: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>): <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></div>











<div class='py1 quiet mt1 prose-big'>Parameters</div>
<div class='prose'>

<div class='space-bottom0'>
<div>
<span class='code bold'>url</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>)</code>
The webhook URL to test

</div>

</div>

</div>






<div class='py1 quiet mt1 prose-big'>Returns</div>
<code><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code>:
Whether the webhook URL passed the regex test










<div class='py1 quiet mt1 prose-big'>Example</div>


<pre class='p1 overflow-auto round fill-light'><span class="hljs-keyword">import</span> { validate } <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;william.js&quot;</span>;

validate.<span class="hljs-property">discord</span>.<span class="hljs-title function_">webhook</span>(<span class="hljs-string">&quot;https://discord.com/api/webhooks/1234567890/abcdefghijklmnopqrstuvwxyz&quot;</span>);
<span class="hljs-comment">//=&gt; true</span>

validate.<span class="hljs-property">discord</span>.<span class="hljs-title function_">webhook</span>(<span class="hljs-string">&quot;https://discord.com/api/webhooks/invalid/webhook&quot;</span>);
<span class="hljs-comment">//=&gt; false</span></pre>










</section>




<section class='p2 mb2 clearfix bg-white minishadow'>


<div class='clearfix'>

<h3 class='fl m0' id='email'>
email
</h3>


<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/wdhdev/william.js/blob/73a18c7221317634af81d6f79db4653c6ccfade5/src/validate/email.js#L15-L23'>
<span>src/validate/email.js</span>
</a>

</div>



<div class='pre p1 fill-light mt0'>email(email: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>): <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></div>











<div class='py1 quiet mt1 prose-big'>Parameters</div>
<div class='prose'>

<div class='space-bottom0'>
<div>
<span class='code bold'>email</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>)</code>
The email address to test

</div>

</div>

</div>






<div class='py1 quiet mt1 prose-big'>Returns</div>
<code><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code>:
Whether the email address passed the regex test










<div class='py1 quiet mt1 prose-big'>Example</div>


<pre class='p1 overflow-auto round fill-light'><span class="hljs-keyword">import</span> { validate } <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;william.js&quot;</span>;

validate.<span class="hljs-title function_">email</span>(<span class="hljs-string">&quot;[email protected]&quot;</span>)
<span class="hljs-comment">//=&gt; true</span>

validate.<span class="hljs-title function_">email</span>(<span class="hljs-string">&quot;hello world&quot;</span>)
<span class="hljs-comment">//=&gt; false</span></pre>










</section>


Expand Down

0 comments on commit 84dcd3f

Please sign in to comment.