Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeh committed Jan 31, 2020
1 parent 6f66b8c commit 6b70499
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/404.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><link rel="stylesheet" href="/cases/magic.css?Zq69ZfLn2z" integrity="sha384-Zq69ZfLn2zMms7j2K6iZ4EutxfQtqvQdMArbrmWD1ZCTC4BnxZbOaCKwKYosMrdy" crossorigin="anonymous"/><link rel="icon" href="/cases/favicon.ico"/><title>@magic/cases</title><meta name="description" content="convert between camelCase, PascalCase, snake_case, and kebab-case."/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic/cases"}</script></head><body><a class="SkipLink" href="/cases/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/cases/"><span>@magic/cases</span></a><nav class="Menu"><ul><li><a href="/cases/#install">install</a></li><li><a href="/cases/#import">import</a></li><li><a href="/cases/#usage">usage</a></li><li><a href="/cases/#source">source</a></li></ul></nav></header><div class="Page" id="page"><div>404 - not found</div></div><footer class="Footer"><div class="Container"><div class="Credits">made with a few bits of <a target="_blank" rel="noopener" href="https://github.com/magic/core">magic</a></div></div></footer></div></main><script src="/cases/magic.js?M1tiso+65Y" integrity="sha384-M1tiso+65YfLPr19tWR/Wpzijj+HtaI18j7iTyRnVyt26f6KA/MZKwYK1a9AqSRy" crossorigin="anonymous"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="icon" href="/cases/favicon.ico"/><title>@magic/cases</title><meta name="description" content="convert between camelCase, PascalCase, snake_case, and kebab-case."/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic/cases"}</script><link rel="stylesheet" href="/cases/magic.css?gnfPOk5T0M" integrity="sha384-gnfPOk5T0MEMyyQA8GD3TukJp/4+SJb9XnB856dD0O93x2QYgd89Ca9YcGGwNuVI" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/cases/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/cases/"><span>@magic/cases</span></a><nav class="Menu"><ul><li><a href="/cases/#install">install</a></li><li><a href="/cases/#import">import</a></li><li><a href="/cases/#usage">usage</a></li><li><a href="/cases/#source">source</a></li></ul></nav></header><div class="Page" id="page"><div>404 - not found</div></div><footer class="Footer"><div class="Container"><div class="Credits">made with a few bits of <a target="_blank" rel="noopener" href="https://github.com/magic/core">magic</a></div></div></footer></div></main><script src="/cases/magic.js?TICuu9UDbk" integrity="sha384-TICuu9UDbkHC2sGH7XYCZYDRtx7GhH/aDcUH6fcAK0s2fTGQ0ucIG+HTrg16tSdE" crossorigin="anonymous"></script></body></html>
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><link rel="stylesheet" href="/cases/magic.css?Zq69ZfLn2z" integrity="sha384-Zq69ZfLn2zMms7j2K6iZ4EutxfQtqvQdMArbrmWD1ZCTC4BnxZbOaCKwKYosMrdy" crossorigin="anonymous"/><link rel="icon" href="/cases/favicon.ico"/><title>@magic/cases</title><meta name="description" content="convert between camelCase, PascalCase, snake_case, and kebab-case."/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic/cases"}</script></head><body><a class="SkipLink" href="/cases/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/cases/"><span>@magic/cases</span></a><nav class="Menu"><ul><li><a href="/cases/#install">install</a></li><li><a href="/cases/#import">import</a></li><li><a href="/cases/#usage">usage</a></li><li><a href="/cases/#source">source</a></li></ul></nav></header><div class="Page" id="page"><h1>@magic/cases</h1><p>convert between camelCase, PascalCase, snake_case, and kebab-case.</p><ul class="GitBadges"><li><a href="https://www.npmjs.com/package/@magic/cases" target="_blank" rel="noopener"><img src="https://img.shields.io/npm/v/@magic/cases.svg" role="presentation" alt=""/></a></li><li><a href="https://travis-ci.com/magic/cases" target="_blank" rel="noopener"><img src="https://img.shields.io/travis/com/magic/cases/master" role="presentation" alt=""/></a></li><li><a href="https://ci.appveyor.com/project/magic/cases/branch/master" target="_blank" rel="noopener"><img src="https://img.shields.io/appveyor/ci/magic/cases/master.svg" role="presentation" alt=""/></a></li><li><a href="https://coveralls.io/github/magic/cases" target="_blank" rel="noopener"><img src="https://img.shields.io/coveralls/github/magic/cases/master.svg" role="presentation" alt=""/></a></li><li><a href="https://greenkeeper.io" target="_blank" rel="noopener"><img src="https://badges.greenkeeper.io/magic/cases.svg" role="presentation" alt=""/></a></li><li><a href="https://snyk.io/test/github/magic/cases" target="_blank" rel="noopener"><img src="https://img.shields.io/snyk/vulnerabilities/github/magic/cases.svg" role="presentation" alt=""/></a></li></ul><h3 id="install">install</h3><p>be in a nodejs project</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">npm i --save-dev @magic/cases</code></pre></div><h3 id="import">import</h3><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="keyword">import</span> cases from <span class="string">&#39;@magic/cases&#39;</span></code></pre></div><h3 id="usage">usage</h3><p>@magic/cases supports 4 case types: snake_case, kebab-case, camelCase, and PascalCase</p><h4 id="usage-camel">camelCase</h4><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="keyword">import</span> cases from <span class="string">&#39;@magic/cases&#39;</span></code><code class="line"></code><code class="line"><span class="keyword">const</span> camelCased = <span class="object">cases</span>.<span class="property">camel</span>(<span class="string">&#39;some-casedString&#39;</span>)</code><code class="line"></code><code class="line"><span class="comment">// camelCased === <span class="string">&#39;someCasedString&#39;</span></span></code></pre></div><h4 id="usage-kebab">kebab-case</h4><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="keyword">import</span> cases from <span class="string">&#39;@magic/cases&#39;</span></code><code class="line"></code><code class="line"><span class="keyword">const</span> kebabCased = <span class="object">cases</span>.<span class="property">kebab</span>(<span class="string">&#39;some-casedString&#39;</span>)</code><code class="line"></code><code class="line"><span class="comment">// kebabCased === <span class="string">&#39;some-cased-string&#39;</span></span></code></pre></div><h4 id="usage-pascal">PascalCase</h4><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="keyword">import</span> cases from <span class="string">&#39;@magic/cases&#39;</span></code><code class="line"></code><code class="line"><span class="keyword">const</span> pascalCased = <span class="object">cases</span>.<span class="property">pascal</span>(<span class="string">&#39;some-casedString&#39;</span>)</code><code class="line"></code><code class="line"><span class="comment">// pascalCased === <span class="string">&#39;SomeCasedString&#39;</span></span></code></pre></div><h4 id="usage-snake">snake_case</h4><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="keyword">import</span> cases from <span class="string">&#39;@magic/cases&#39;</span></code><code class="line"></code><code class="line"><span class="keyword">const</span> snakeCased = <span class="object">cases</span>.<span class="property">snake</span>(<span class="string">&#39;some-casedString&#39;</span>)</code><code class="line"></code><code class="line"><span class="comment">// snakeCased === <span class="string">&#39;some_cased_string&#39;</span></span></code></pre></div><h2 id="source">source</h2><p>the source for this page is in the <a href="https://github.com/magic/cases/tree/master/example" target="_blank" rel="noopener">example directory</a> and gets built and published to github using <a href="https://github.com/magic/core" target="_blank" rel="noopener">@magic/core</a></p><button class="LightSwitch"></button></div><footer class="Footer"><div class="Container"><div class="Credits">made with a few bits of <a target="_blank" rel="noopener" href="https://github.com/magic/core">magic</a></div></div></footer></div></main><script src="/cases/magic.js?M1tiso+65Y" integrity="sha384-M1tiso+65YfLPr19tWR/Wpzijj+HtaI18j7iTyRnVyt26f6KA/MZKwYK1a9AqSRy" crossorigin="anonymous"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="icon" href="/cases/favicon.ico"/><title>@magic/cases</title><meta name="description" content="convert between camelCase, PascalCase, snake_case, and kebab-case."/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic/cases"}</script><link rel="stylesheet" href="/cases/magic.css?gnfPOk5T0M" integrity="sha384-gnfPOk5T0MEMyyQA8GD3TukJp/4+SJb9XnB856dD0O93x2QYgd89Ca9YcGGwNuVI" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/cases/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/cases/"><span>@magic/cases</span></a><nav class="Menu"><ul><li><a href="/cases/#install">install</a></li><li><a href="/cases/#import">import</a></li><li><a href="/cases/#usage">usage</a></li><li><a href="/cases/#source">source</a></li></ul></nav></header><div class="Page" id="page"><h1>@magic/cases</h1><p>convert between camelCase, PascalCase, snake_case, and kebab-case.</p><ul class="GitBadges"><li><a href="https://www.npmjs.com/package/@magic/cases" target="_blank" rel="noopener"><img src="https://img.shields.io/npm/v/@magic/cases.svg" role="presentation" alt=""/></a></li><li><a href="https://travis-ci.com/magic/cases" target="_blank" rel="noopener"><img src="https://img.shields.io/travis/com/magic/cases/master" role="presentation" alt=""/></a></li><li><a href="https://ci.appveyor.com/project/magic/cases/branch/master" target="_blank" rel="noopener"><img src="https://img.shields.io/appveyor/ci/magic/cases/master.svg" role="presentation" alt=""/></a></li><li><a href="https://coveralls.io/github/magic/cases" target="_blank" rel="noopener"><img src="https://img.shields.io/coveralls/github/magic/cases/master.svg" role="presentation" alt=""/></a></li><li><a href="https://greenkeeper.io" target="_blank" rel="noopener"><img src="https://badges.greenkeeper.io/magic/cases.svg" role="presentation" alt=""/></a></li><li><a href="https://snyk.io/test/github/magic/cases" target="_blank" rel="noopener"><img src="https://img.shields.io/snyk/vulnerabilities/github/magic/cases.svg" role="presentation" alt=""/></a></li></ul><h3 id="install">install</h3><p>be in a nodejs project</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">npm i --save-dev @magic/cases</code></pre></div><h3 id="import">import</h3><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="keyword">import</span> cases from <span class="string">&#39;@magic/cases&#39;</span></code></pre></div><h3 id="usage">usage</h3><p>@magic/cases supports 4 case types: snake_case, kebab-case, camelCase, and PascalCase</p><h4 id="usage-camel">camelCase</h4><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="keyword">import</span> cases from <span class="string">&#39;@magic/cases&#39;</span></code><code class="line"></code><code class="line"><span class="keyword">const</span> camelCased = <span class="object">cases</span>.<span class="property">camel</span>(<span class="string">&#39;some-casedString&#39;</span>)</code><code class="line"></code><code class="line"><span class="comment">// camelCased === <span class="string">&#39;someCasedString&#39;</span></span></code></pre></div><h4 id="usage-kebab">kebab-case</h4><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="keyword">import</span> cases from <span class="string">&#39;@magic/cases&#39;</span></code><code class="line"></code><code class="line"><span class="keyword">const</span> kebabCased = <span class="object">cases</span>.<span class="property">kebab</span>(<span class="string">&#39;some-casedString&#39;</span>)</code><code class="line"></code><code class="line"><span class="comment">// kebabCased === <span class="string">&#39;some-cased-string&#39;</span></span></code></pre></div><h4 id="usage-pascal">PascalCase</h4><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="keyword">import</span> cases from <span class="string">&#39;@magic/cases&#39;</span></code><code class="line"></code><code class="line"><span class="keyword">const</span> pascalCased = <span class="object">cases</span>.<span class="property">pascal</span>(<span class="string">&#39;some-casedString&#39;</span>)</code><code class="line"></code><code class="line"><span class="comment">// pascalCased === <span class="string">&#39;SomeCasedString&#39;</span></span></code></pre></div><h4 id="usage-snake">snake_case</h4><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="keyword">import</span> cases from <span class="string">&#39;@magic/cases&#39;</span></code><code class="line"></code><code class="line"><span class="keyword">const</span> snakeCased = <span class="object">cases</span>.<span class="property">snake</span>(<span class="string">&#39;some-casedString&#39;</span>)</code><code class="line"></code><code class="line"><span class="comment">// snakeCased === <span class="string">&#39;some_cased_string&#39;</span></span></code></pre></div><h2 id="source">source</h2><p>the source for this page is in the <a href="https://github.com/magic/cases/tree/master/example" target="_blank" rel="noopener">example directory</a> and gets built and published to github using <a href="https://github.com/magic/core" target="_blank" rel="noopener">@magic/core</a></p><button class="LightSwitch"><svg viewBox="0 0 352 460"><path d="M149 48C96 48 48 95 47 143c-1 13 19 17 20 0-1-35 48-75 83-75 15 0 12-22-1-20z"></path><path d="M176 0C74 0 0 83 0 176c9 91 84 118 100 204h20c-16-92-97-138-100-204C22 70 105 21 176 20zM95 400c2 68 20 48 40 60h82c20-12 38 8 40-60z"></path><path d="M175 0c102 0 177 83 177 176-9 91-86 118-102 204h-20c16-92 99-138 102-204-2-106-86-155-157-156z"></path></svg></button></div><footer class="Footer"><div class="Container"><div class="Credits">made with a few bits of <a target="_blank" rel="noopener" href="https://github.com/magic/core">magic</a></div></div></footer></div></main><script src="/cases/magic.js?TICuu9UDbk" integrity="sha384-TICuu9UDbkHC2sGH7XYCZYDRtx7GhH/aDcUH6fcAK0s2fTGQ0ucIG+HTrg16tSdE" crossorigin="anonymous"></script></body></html>
Loading

0 comments on commit 6b70499

Please sign in to comment.