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:
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user