Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 698 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 698 Bytes

keyword-search

Build Status Coverage Status

Determine whether a given query string contains keywords in a given item string, with a specified margin for spelling error based on the hamming distance.

Installation

npm install keyword-search

Usage

var keywordSearch = require('keyword-search');
keywordSearch('hello world', 'hellq woeld', 1);
//returns true

Tests

npm test