feat: add named CLI command 'ficons'

- Update package.json bin field to use object format with 'ficons' command name
- Update README examples to use the new 'ficons search' command syntax

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 08:54:38 +08:00
parent 8a4595ce8b
commit b888455add
2 changed files with 7 additions and 5 deletions
+4 -4
View File
@@ -104,14 +104,14 @@ Search for icons directly from the command line using `npx`:
```bash
# Basic search
npx @invisi/ficons camera
npx @invisi/ficons search camera
# Search with multiple keywords
npx @invisi/ficons arrow left
npx @invisi/ficons search arrow left
# Filter by variation (prefix)
npx @invisi/ficons user rr
npx @invisi/ficons home --variation ss
npx @invisi/ficons search user rr
npx @invisi/ficons search home --variation ss
```
Outputs JSON with icon names and available variations:
+3 -1
View File
@@ -3,7 +3,9 @@
"version": "1.0.0",
"description": "Ficons icon font package with local explorer and webfonts.",
"license": "SEE LICENSE IN README",
"bin": "index.js",
"bin": {
"ficons": "index.js"
},
"style": "fonts/ficons.css",
"files": [
"fonts",