blue-keyword
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

keyword

Keyword matching algorithm

Thanks to

Usage

import matchKeyword from 'blue-keyword';
 
const products = ['Tagful Tee', 'Rectangle Logo', 'Crewneck'];
const product = products.find(product => matchKeyword(product, '+Tagful, -Tagless'));
 
console.log(product); // => 'Tagful Tee'

Package Sidebar

Install

npm i blue-keyword

Weekly Downloads

3

Version

1.0.4

License

Apache-2.0

Unpacked Size

13.2 kB

Total Files

5

Last publish

Collaborators

  • aabbccsmith