Socket
Socket
Sign inDemoInstall

react-highlight-words

Package Overview
Dependencies
8
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.13.0 to 0.14.0

dist/main.umd.js

5

package.json
{
"name": "react-highlight-words",
"version": "0.13.0",
"version": "0.14.0",
"description": "React component to highlight words within a larger body of text",

@@ -9,3 +9,3 @@ "main": "dist/main.js",

"build:website": "npm run clean:website && cross-env NODE_ENV=production webpack --config webpack.config.website.js -p --bail",
"build:dist": "npm run clean:dist && cross-env NODE_ENV=production webpack --config webpack.config.dist.js --bail",
"build:dist": "npm run clean:dist && cross-env NODE_ENV=production webpack --config webpack.config.dist.cjs.js --bail && cross-env NODE_ENV=production webpack --config webpack.config.dist.umd.js --bail",
"clean": "npm run clean:website && npm run clean:dist",

@@ -84,2 +84,3 @@ "clean:website": "rimraf build",

"latinize": "^0.2.0",
"lodash": "^4.17.10",
"mocha": "^2.3.4",

@@ -86,0 +87,0 @@ "phantomjs2": "^2.0.2",

2

README.md

@@ -48,3 +48,3 @@ <img src="https://cloud.githubusercontent.com/assets/29597/11913937/0d2dcd78-a629-11e5-83e7-6a17b6d765a5.png" width="260" height="260">

| sanitize | Function | | Process each search word and text to highlight before comparing (eg remove accents); signature `(text: string): string` |
| searchWords | Array<String> | ✓ | Array of search words. The search terms are treated as RegExps unless `autoEscape` is set. |
| searchWords | Array<String | RegExp> | ✓ | Array of search words. String search terms are automatically cast to RegExps unless `autoEscape` is true. |
| textToHighlight | String | ✓ | Text to highlight matches in |

@@ -51,0 +51,0 @@ | unhighlightClassName | String | | CSS class name applied to unhighlighted text |

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc