@perch33/react-usefilter-hook 1.0.1 β†’ 1.0.3

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.
Files changed (2) hide show
  1. package/README.md +23 -14
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -3,6 +3,11 @@
3
3
  A lightweight and reusable React hook for filtering lists with accent normalization, punctuation removal, and TypeScript support.
4
4
  Ideal for search bars, dynamic lists, admin dashboards, e-commerce filters, etc.
5
5
 
6
+ ![npm](https://img.shields.io/npm/v/@perch33/react-usefilter-hook)
7
+ ![downloads](https://img.shields.io/npm/dm/@perch33/react-usefilter-hook)
8
+ ![license](https://img.shields.io/npm/l/@perch33/react-usefilter-hook)
9
+ ![types](https://img.shields.io/badge/types-TypeScript-blue)
10
+
6
11
  ---
7
12
 
8
13
  ## πŸ”₯ Features
@@ -27,7 +32,6 @@ or
27
32
 
28
33
  ```sh
29
34
  yarn add @perch33/react-usefilter-hook
30
-
31
35
  ```
32
36
 
33
37
  ## πŸš€ Usage Example (Basic)
@@ -116,31 +120,37 @@ useFilter<T>(data, key, errorComponent);
116
120
  ### βš™οΈ How filtering works
117
121
 
118
122
  - This hook automatically:
119
-
120
123
  - Converts text to lowercase
121
-
122
124
  - Removes accents (Ñéíóú β†’ aeiou)
123
-
124
125
  - Removes punctuation and special characters
125
-
126
126
  - Performs a normalized comparison
127
-
128
127
  - Filters in real time as the user types
129
128
 
129
+ ---
130
+
131
+ ## πŸ” Used in Production (Real Examples)
132
+
133
+ This hook is currently used in my personal website:
134
+
135
+ - 🎼 **Music Scores / Partituras**
136
+ Live search using `useFilter` to filter music scores dynamically.
137
+ πŸ‘‰ https://www.percychuzon.com/partituras
138
+
139
+ - ✍️ **Blog**
140
+ Used to filter blog posts instantly with accent-insensitive matching.
141
+ πŸ‘‰ https://www.percychuzon.com/blog
142
+
143
+ These sections demonstrate real-world usage of the hook with dynamic content,
144
+ search inputs, and accent-normalized filtering.
145
+
130
146
  ### πŸ’‘ When to use this hook?
131
147
 
132
148
  - Product search inputs
133
-
134
149
  - Admin panel filters
135
-
136
150
  - Searchable dropdowns
137
-
138
151
  - User lists
139
-
140
152
  - Blog post search
141
-
142
153
  - Table filtering
143
-
144
154
  - Autocomplete components
145
155
 
146
156
  ## πŸ“ Project Structure
@@ -148,7 +158,6 @@ useFilter<T>(data, key, errorComponent);
148
158
  Your installation will contain:
149
159
 
150
160
  ```
151
-
152
161
  dist/
153
162
  β”œβ”€ cjs/
154
163
  β”œβ”€ esm/
@@ -161,4 +170,4 @@ README.md
161
170
 
162
171
  **Percy Chuzon**
163
172
  πŸ“§ [contacto@percychuzon.com](mailto:contacto@percychuzon.com)
164
- 🌐 [https://wwww.percychuzon.com](https://www.percychuzon.com)
173
+ 🌐 [https://www.percychuzon.com](https://www.percychuzon.com)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perch33/react-usefilter-hook",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "A lightweight and reusable React hook for filtering lists with accent normalization, punctuation removal and TypeScript support.",
5
5
  "main": "dist/cjs/index.min.js",
6
6
  "module": "dist/esm/index.min.js",