@microflash/spritely
Advanced tools
+2
-2
| { | ||
| "name": "@microflash/spritely", | ||
| "version": "1.3.0", | ||
| "version": "1.3.1", | ||
| "description": "A handy Node.js CLI to generate SVG sprites", | ||
@@ -11,3 +11,3 @@ "preferGlobal": true, | ||
| "cheerio": "^1.0.0-rc.3", | ||
| "commander": "^5.1.0", | ||
| "commander": "^6.1.0", | ||
| "fs-extra": "^9.0.1", | ||
@@ -14,0 +14,0 @@ "klaw": "^3.0.0" |
+5
-1
@@ -28,3 +28,2 @@ # Spritely | ||
| -p, --prefix [prefix] specify prefix for id attribute for symbols (default: none) | ||
| -n, --normalize [normalize] toggle whitespace normalization (default: true) | ||
| -a, --a11y [a11y] toggle accessibility mode (default: false) | ||
@@ -43,14 +42,19 @@ -q, --quiet disable verbose output | ||
| $ spritely --input /mnt/e/assets/icons --output icons.svg | ||
| $ spritely -i /mnt/e/assets/icons -o icons.svg | ||
| # Generate `sprites.svg` from SVG files in the current directory with viewBox `0 0 24 24` | ||
| $ spritely --viewbox "0 0 24 24" | ||
| $ spritely -v "0 0 24 24" | ||
| # Generate `sprites.svg` from SVG files in the current directory with prefix `icon-` | ||
| $ spritely --prefix "icon-" | ||
| $ spritely -p "icon-" | ||
| # Generate `sprites.svg` from SVG files in the directory `/mnt/e/assets` and the directories within it | ||
| $ spritely --input /mnt/e/assets/icons --recursive true | ||
| $ spritely -i /mnt/e/assets/icons -r | ||
| # Generate `sprites.svg` from SVG files in the current directory with accessibility mode | ||
| $ spritely --a11y true | ||
| $ spritely -a | ||
| ``` | ||
@@ -57,0 +61,0 @@ |
Sorry, the diff of this file is not supported yet
89
4.71%9616
-0.9%+ Added
- Removed
Updated