JSPM

keyword-search

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 512
  • Score
    100M100P100Q69338F
  • License MIT

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.

Package Exports

  • keyword-search

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (keyword-search) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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