From b888455add3a91b2f244237e3484b26787b8d04f Mon Sep 17 00:00:00 2001 From: Surya Handika Putratama Date: Wed, 4 Mar 2026 08:54:38 +0800 Subject: [PATCH] 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 --- README.md | 8 ++++---- package.json | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index dbbbb4d..3487026 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/package.json b/package.json index 85eee5b..bc2b89f 100644 --- a/package.json +++ b/package.json @@ -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",