131 lines
		
	
	
	
		
			4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			131 lines
		
	
	
	
		
			4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!doctype html>
 | ||
| <html>
 | ||
| <head>
 | ||
|   <title>Wroten - svgdir2sprite</title>
 | ||
|   <meta charset="UTF-8" />
 | ||
|   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
 | ||
|   <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
 | ||
| </head>
 | ||
| 
 | ||
| <body class="bg-gray-100">
 | ||
|   <header>
 | ||
|     <nav>
 | ||
|       <ul><li>
 | ||
|           <a href="/work-history/antharia/">
 | ||
|             Web Design & Dev Intern at Antharia
 | ||
|           </a>
 | ||
|         </li><li>
 | ||
|           <a href="/work-history/cyto-communications/">
 | ||
|             Interactive Technologies Lead & Web Admin at Cyto Communications
 | ||
|           </a>
 | ||
|         </li><li>
 | ||
|           <a href="/work-history/eyemaginations/">
 | ||
|             Senior Web Engineer at Eyemaginations
 | ||
|           </a>
 | ||
|         </li><li>
 | ||
|           <a href="/volunteering/theseed/">
 | ||
|             Austin Give Camp - The SEED
 | ||
|           </a>
 | ||
|         </li><li>
 | ||
|           <a href="/repos/json-query-chain/">
 | ||
|             json-query-chain
 | ||
|           </a>
 | ||
|         </li><li>
 | ||
|           <a href="/repos/blabber-comic/">
 | ||
|             blabber-comic
 | ||
|           </a>
 | ||
|         </li><li>
 | ||
|           <a href="/volunteering/code2college/">
 | ||
|             Code 2 College
 | ||
|           </a>
 | ||
|         </li><li>
 | ||
|           <a href="/repos/svgdir2sprite/" aria-current="page">
 | ||
|             svgdir2sprite
 | ||
|           </a>
 | ||
|         </li><li>
 | ||
|           <a href="/repos/my_spells/">
 | ||
|             my_spells
 | ||
|           </a>
 | ||
|         </li><li>
 | ||
|           <a href="/volunteering/gabriellas-smile-foundation/">
 | ||
|             Gabriella’s Smile Foundation
 | ||
|           </a>
 | ||
|         </li><li>
 | ||
|           <a href="/work-history/q2/">
 | ||
|             Developer III at Q2ebanking
 | ||
|           </a>
 | ||
|         </li><li>
 | ||
|           <a href="/repos/team-cli/">
 | ||
|             team-cli
 | ||
|           </a>
 | ||
|         </li><li>
 | ||
|           <a href="/work-history/allovue/">
 | ||
|             Software Engineer at Allovue
 | ||
|           </a>
 | ||
|         </li><li>
 | ||
|           <a href="/repos/sortable-recipes/">
 | ||
|             sortable-recipes
 | ||
|           </a>
 | ||
|         </li><li>
 | ||
|           <a href="/work-history/skillsengine/">
 | ||
|             Lead Full-Stack Software Engineer at SkillsEngine
 | ||
|           </a>
 | ||
|         </li><li>
 | ||
|           <a href="/repos/ember-select-light/">
 | ||
|             ember-select-light
 | ||
|           </a>
 | ||
|         </li></ul>
 | ||
|     </nav>
 | ||
|   </header>
 | ||
| 
 | ||
| 
 | ||
| <main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
 | ||
|   <div class="max-w-3x1 mx-auto mb-5">
 | ||
|     <div class="-ml-2 mt-8 flex flex-wrap items-baseline">
 | ||
|       <h1 class="ml-8 mt-2 text-lg font-medium text-gray-900">
 | ||
|         svgdir2sprite
 | ||
|       </h1>
 | ||
|       <p class="ml-2 mt-1 text-sm text-gray-500 truncate">in </p>
 | ||
|     </div>
 | ||
|   </div>
 | ||
|   <div class="bg-white overflow-hidden shadow sm:rounded-lg">
 | ||
|     <div class="px-4 py-5 sm:p-6">
 | ||
|       <blockquote>
 | ||
| <p>Creates a spritesheet from a directory of svgs.</p>
 | ||
| </blockquote>
 | ||
| <!--more-->
 | ||
| <p><a href="https://gitlab.com/gaiety/svgdir2sprite">Fork from Gitlab</a></p>
 | ||
| <h1>svgdir2sprite</h1>
 | ||
| <p><a href="https://www.npmjs.com/package/svgdir2sprite"><img src="https://badge.fury.io/js/svgdir2sprite.svg" alt="npm version"></a></p>
 | ||
| <p>Creates a spritesheet from a directory of svgs. Can return the results directly or write to a spritesheet svg file. Node based and powered by <a href="https://github.com/mrmlnc/svg2sprite">svg2sprite</a>.</p>
 | ||
| <h2>As a Module</h2>
 | ||
| <p><code>npm install --save svgdir2sprite</code></p>
 | ||
| <h3>Return SVG Spritesheet as String</h3>
 | ||
| <pre><code class="language-javascript">const svgdir2sprite = require('svgdir2sprite');
 | ||
| 
 | ||
| svgdir2sprite('./src/svgs') // Async Promise
 | ||
| .then((svgContent) => console.log(svgContent));
 | ||
| </code></pre>
 | ||
| <h3>Write SVG Spritesheet to File</h3>
 | ||
| <pre><code class="language-javascript">const svgdir2sprite = require('svgdir2sprite');
 | ||
| 
 | ||
| svgdir2sprite('./src/svgs', './build/spritesheet.svg');
 | ||
| </code></pre>
 | ||
| <h2>From the CLI</h2>
 | ||
| <p><code>npm install -g svgdir2sprite</code></p>
 | ||
| <h3>Return SVG Spritesheet to the Console</h3>
 | ||
| <pre><code class="language-bash">svgdir2sprite ./src/svgs
 | ||
| </code></pre>
 | ||
| <h3>Write SVG Spritesheet to File</h3>
 | ||
| <pre><code class="language-bash">svgdir2sprite ./src/svgs ./build/spritesheet.svg
 | ||
| </code></pre>
 | ||
| 
 | ||
|     </div>
 | ||
|   </div>
 | ||
| </main>
 | ||
| 
 | ||
|   </body>
 | ||
| </html>
 | ||
| 
 | ||
| 
 | ||
| 
 | 
