@wkovacs64/add-icon 1.2.0 → 1.2.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/README.md +4 -0
- package/bin/add-icon.js +1 -15
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
A command-line tool to download icons from the [Iconify Framework](https://iconify.design/) and
|
|
4
4
|
apply custom transformations.
|
|
5
5
|
|
|
6
|
+
<!-- prettier-ignore -->
|
|
7
|
+
> [!WARNING]
|
|
8
|
+
> This is "vibe coded" AI slop. I did not write any of this code by hand. Use at your own risk.
|
|
9
|
+
|
|
6
10
|
## Installation
|
|
7
11
|
|
|
8
12
|
Add it to your project:
|
package/bin/add-icon.js
CHANGED
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import url from 'node:url';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import os from 'node:os';
|
|
6
3
|
import { runCli } from '../dist/index.js';
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
const __dirname = path.dirname(__filename);
|
|
10
|
-
|
|
11
|
-
// This logic ensures we only run the CLI when this file is called directly
|
|
12
|
-
// and not when it's imported as a module
|
|
13
|
-
if (
|
|
14
|
-
os.platform() === 'win32'
|
|
15
|
-
? process.argv[1] === __filename
|
|
16
|
-
: process.argv[1] === __filename || process.argv[1] === __dirname
|
|
17
|
-
) {
|
|
18
|
-
runCli();
|
|
19
|
-
}
|
|
5
|
+
runCli();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wkovacs64/add-icon",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "CLI tool to download and transform icons from Iconify",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iconify",
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@arethetypeswrong/cli": "0.17.4",
|
|
61
61
|
"@changesets/changelog-github": "0.5.1",
|
|
62
|
-
"@changesets/cli": "2.29.
|
|
63
|
-
"@types/node": "22.
|
|
62
|
+
"@changesets/cli": "2.29.2",
|
|
63
|
+
"@types/node": "22.15.3",
|
|
64
64
|
"@wkovacs64/eslint-config": "7.5.2",
|
|
65
65
|
"@wkovacs64/prettier-config": "4.1.1",
|
|
66
66
|
"del-cli": "6.0.0",
|
|
67
|
-
"eslint": "9.
|
|
67
|
+
"eslint": "9.25.1",
|
|
68
68
|
"npm-run-all2": "7.0.2",
|
|
69
69
|
"prettier": "3.5.3",
|
|
70
|
-
"tsx": "4.19.
|
|
70
|
+
"tsx": "4.19.4"
|
|
71
71
|
}
|
|
72
72
|
}
|