react-highlight-me 2.0.1 → 2.0.2
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 +6 -2
- package/package.json +1 -3
package/README.md
CHANGED
|
@@ -14,14 +14,18 @@ A flexible React component for highlighting specific words or phrases within tex
|
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
| npm | yarn | pnpm |
|
|
18
|
+
|----------------------------------|-------------------------------|-------------------------------|
|
|
19
|
+
| `npm install react-highlight-me` | `yarn add react-highlight-me` | `pnpm add react-highlight-me` |
|
|
20
|
+
|
|
21
|
+
|
|
18
22
|
|
|
19
23
|
## Usage
|
|
20
24
|
|
|
21
25
|
### Basic Text Highlighting
|
|
22
26
|
|
|
23
27
|
```jsx
|
|
24
|
-
import TextHighlighter from '
|
|
28
|
+
import TextHighlighter from 'react-highlight-me';
|
|
25
29
|
|
|
26
30
|
function App() {
|
|
27
31
|
return (
|
package/package.json
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-highlight-me",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Highlight words in React components or text",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"import": {
|
|
10
|
-
"development": "./src/index.tsx",
|
|
11
10
|
"types": "./dist/esm/index.d.ts",
|
|
12
11
|
"default": "./dist/esm/index.js"
|
|
13
12
|
},
|
|
14
13
|
"require": {
|
|
15
|
-
"development": "./src/index.tsx",
|
|
16
14
|
"types": "./dist/cjs/index.d.ts",
|
|
17
15
|
"default": "./dist/cjs/index.js"
|
|
18
16
|
}
|