export-svg-typescript 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/readme.md +2 -2
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "export-svg-typescript",
|
|
3
|
-
"
|
|
3
|
+
"description": "Export SVG icons to TypeScript index with tooltips and customizations",
|
|
4
4
|
"author": "vtempest",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "0.1.
|
|
7
|
-
"description": "Export SVG to TypeScript",
|
|
6
|
+
"version": "0.1.1",
|
|
8
7
|
"type": "module",
|
|
8
|
+
"module": "export-svg-typescript.js",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"demo": "node export-svg-typescript.js -i ./demo -o ./demo/index.ts"
|
|
11
11
|
},
|
|
12
12
|
"bin": {
|
|
13
|
-
"export-svg-typescript": "
|
|
13
|
+
"export-svg-typescript": "export-svg-typescript.js"
|
|
14
14
|
}
|
|
15
15
|
}
|
package/readme.md
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Convert a folder of SVG icons into a color-customizable, tree-shakable TypeScript export `index.ts` that works with any component framework without SVG or Vite compiler issues.
|
|
4
4
|
|
|
5
5
|
1. Barrel Roll: Exports all icons as named functions for tree shaking to only the ones actually used.
|
|
6
|
-
2. Typescript Tooltip Previews: Each export includes a tooltip preview
|
|
6
|
+
2. Typescript Tooltip Previews: Each export includes a tooltip preview of icon.
|
|
7
7
|
3. Customizable: Change icon colors, size, and dimensions at runtime. Can return SVG or IMG tag with SVG as source.
|
|
8
|
-
4. CLI Tool: Use directly from the command line or in npm scripts
|
|
8
|
+
4. CLI Tool: Use directly from the command line or in npm scripts.
|
|
9
9
|
|
|
10
10
|
### Install
|
|
11
11
|
```
|