{
  "_id": "fuzzysearch",
  "maintainers": [
    {
      "name": "bevacqua",
      "email": "nicolasbevacqua@gmail.com"
    }
  ],
  "dist-tags": {
    "latest": "1.0.3"
  },
  "author": {
    "name": "Nicolas Bevacqua",
    "email": "ng@bevacqua.io",
    "url": "http://bevacqua.io"
  },
  "_rev": "14-7023596181c7ad9940d61f5e1f009240",
  "description": "Tiny and blazing-fast fuzzy search in JavaScript",
  "readme": "# fuzzysearch\n\n> Tiny and blazing-fast fuzzy search in JavaScript\n\nFuzzy searching allows for flexibly matching a string with partial input, useful for filtering data very quickly based on lightweight user input.\n\n# Demo\n\nTo see `fuzzysearch` in action, head over to [bevacqua.github.io/horsey][3], which is a demo of an autocomplete component that uses `fuzzysearch` to filter out results based on user input.\n\n# Install\n\nFrom `npm`\n\n```shell\nnpm install --save fuzzysearch\n```\n\n# `fuzzysearch(needle, haystack)`\n\nReturns `true` if `needle` matches `haystack` using a fuzzy-searching algorithm. Note that this program doesn't implement _[levenshtein distance][2]_, but rather a simplified version where **there's no approximation**. The method will return `true` only if each character in the `needle` can be found in the `haystack` and occurs after the preceding character.\n\n```js\nfuzzysearch('twl', 'cartwheel') // <- true\nfuzzysearch('cart', 'cartwheel') // <- true\nfuzzysearch('cw', 'cartwheel') // <- true\nfuzzysearch('ee', 'cartwheel') // <- true\nfuzzysearch('art', 'cartwheel') // <- true\nfuzzysearch('eeel', 'cartwheel') // <- false\nfuzzysearch('dog', 'cartwheel') // <- false\n```\n\nAn exciting application for this kind of algorithm is to filter options from an autocomplete menu, check out [horsey][3] for an example on how that might look like.\n\n# But! _`RegExp`s...!_\n\n![chart showing abysmal performance for regexp-based implementation][1]\n\n# License\n\nMIT\n\n[1]: https://cloud.githubusercontent.com/assets/934293/6495796/106a61a6-c2ac-11e4-945d-3d1bb066a76e.png\n[2]: http://en.wikipedia.org/wiki/Levenshtein_distance\n[3]: http://bevacqua.github.io/horsey\n",
  "repository": {
    "type": "git",
    "url": "git://github.com/bevacqua/fuzzysearch.git"
  },
  "users": {
    "vutran": true,
    "moimikey": true,
    "chalassa": true,
    "ruyadorno": true
  },
  "bugs": {
    "url": "https://github.com/bevacqua/fuzzysearch/issues"
  },
  "license": "MIT",
  "versions": {
    "1.0.0": {
      "name": "fuzzysearch",
      "description": "Fuzzy search in JavaScript",
      "version": "1.0.0",
      "homepage": "https://github.com/bevacqua/fuzzysearch",
      "author": {
        "name": "Nicolas Bevacqua",
        "email": "ng@bevacqua.io",
        "url": "http://bevacqua.io"
      },
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "git://github.com/bevacqua/fuzzysearch.git"
      },
      "scripts": {
        "test": "jshint . && tape test/*.js"
      },
      "devDependencies": {
        "jshint": "^2.6.0",
        "tape": "^3.5.0"
      },
      "gitHead": "724e8959fd4874572ec3fea71fde06f1b5d95863",
      "bugs": {
        "url": "https://github.com/bevacqua/fuzzysearch/issues"
      },
      "_id": "fuzzysearch@1.0.0",
      "_shasum": "2893ed62030510cbc56ce01094cf59553aea0b38",
      "_from": ".",
      "_npmVersion": "2.6.0",
      "_nodeVersion": "0.10.26",
      "_npmUser": {
        "name": "bevacqua",
        "email": "nicolasbevacqua@gmail.com"
      },
      "maintainers": [
        {
          "name": "bevacqua",
          "email": "nicolasbevacqua@gmail.com"
        }
      ],
      "dist": {
        "shasum": "2893ed62030510cbc56ce01094cf59553aea0b38",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/fuzzysearch/-/fuzzysearch-1.0.0.tgz",
        "integrity": "sha512-TUDgAgyG7mkqNQrMjhbJxOvpGLhlwX9wXLPUBwtIIKMyaK1o+s+H7mHHUPXSLbxhSC9K0DEPelTvLtnQkvmRNQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIHZT1X4CI/sifJ9O/Z5XZqwBc3CdrIABydLNTobb25EQAiEAofv99/fSOo3ArPBhYTJ2Ph2XVUXv98+Osj3gyOm9RuY="
          }
        ]
      }
    },
    "1.0.1": {
      "name": "fuzzysearch",
      "description": "Fuzzy search in JavaScript",
      "version": "1.0.1",
      "homepage": "https://github.com/bevacqua/fuzzysearch",
      "author": {
        "name": "Nicolas Bevacqua",
        "email": "ng@bevacqua.io",
        "url": "http://bevacqua.io"
      },
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "git://github.com/bevacqua/fuzzysearch.git"
      },
      "scripts": {
        "test": "jshint . && tape test/*.js"
      },
      "devDependencies": {
        "jshint": "^2.6.0",
        "tape": "^3.5.0"
      },
      "gitHead": "908790af10e11625a1d91bf16aa8ef1c25c59604",
      "bugs": {
        "url": "https://github.com/bevacqua/fuzzysearch/issues"
      },
      "_id": "fuzzysearch@1.0.1",
      "_shasum": "7842c551d831d81f0a67e27b3fa0fd8629880176",
      "_from": ".",
      "_npmVersion": "2.6.0",
      "_nodeVersion": "0.10.26",
      "_npmUser": {
        "name": "bevacqua",
        "email": "nicolasbevacqua@gmail.com"
      },
      "maintainers": [
        {
          "name": "bevacqua",
          "email": "nicolasbevacqua@gmail.com"
        }
      ],
      "dist": {
        "shasum": "7842c551d831d81f0a67e27b3fa0fd8629880176",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/fuzzysearch/-/fuzzysearch-1.0.1.tgz",
        "integrity": "sha512-VBob2J2LE9wuGfi+gtqgEe4Hy+O5KwgD8bY9OXWunpyxira73nCXfmhWwWPWN1sD6n2FsuUdLYdQs+0FLq0M0g==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCICoRXefIcqSDi2TFtDzEjdkVV4L4Z7dpA98QhVtZ0VopAiEA7Osxfwj13ospAAtFgQaKwWXYmjDQSc81Z1qdLKsGWpU="
          }
        ]
      }
    },
    "1.0.2": {
      "name": "fuzzysearch",
      "description": "Fuzzy search in JavaScript",
      "version": "1.0.2",
      "homepage": "https://github.com/bevacqua/fuzzysearch",
      "author": {
        "name": "Nicolas Bevacqua",
        "email": "ng@bevacqua.io",
        "url": "http://bevacqua.io"
      },
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "git://github.com/bevacqua/fuzzysearch.git"
      },
      "scripts": {
        "test": "jshint . && tape test/*.js"
      },
      "devDependencies": {
        "jshint": "^2.6.0",
        "tape": "^3.5.0"
      },
      "gitHead": "4a02b2e965ffe1a28c1aa444f57c4d9b63b5df8a",
      "bugs": {
        "url": "https://github.com/bevacqua/fuzzysearch/issues"
      },
      "_id": "fuzzysearch@1.0.2",
      "_shasum": "720ce4c35f13312e3e0a7fb8086287efd95d1c23",
      "_from": ".",
      "_npmVersion": "2.6.0",
      "_nodeVersion": "0.10.26",
      "_npmUser": {
        "name": "bevacqua",
        "email": "nicolasbevacqua@gmail.com"
      },
      "maintainers": [
        {
          "name": "bevacqua",
          "email": "nicolasbevacqua@gmail.com"
        }
      ],
      "dist": {
        "shasum": "720ce4c35f13312e3e0a7fb8086287efd95d1c23",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/fuzzysearch/-/fuzzysearch-1.0.2.tgz",
        "integrity": "sha512-E9dnmi1OkRX/Jxku0QMGaJ2wxTCJuzttKHJ2xaQ40S5sg4/Pw8iP+yQ7KasYHH/W/+sfwfXHO4PQrTCg7kl5NA==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDd2HGBtp3xHqMrUpSnzqDWU5EAhthA1/g69cJzgIQuTgIhAJPD/aD5TZQuX/PFvv0dOPylqAKnKs+eFtHZXvisYm03"
          }
        ]
      }
    },
    "1.0.3": {
      "name": "fuzzysearch",
      "description": "Tiny and blazing-fast fuzzy search in JavaScript",
      "version": "1.0.3",
      "homepage": "https://github.com/bevacqua/fuzzysearch",
      "author": {
        "name": "Nicolas Bevacqua",
        "email": "ng@bevacqua.io",
        "url": "http://bevacqua.io"
      },
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "git://github.com/bevacqua/fuzzysearch.git"
      },
      "scripts": {
        "test": "jshint . && tape test/*.js"
      },
      "devDependencies": {
        "jshint": "^2.6.0",
        "tape": "^3.5.0"
      },
      "gitHead": "1f4d8d779611544e3b165344a998ed0641e317ef",
      "bugs": {
        "url": "https://github.com/bevacqua/fuzzysearch/issues"
      },
      "_id": "fuzzysearch@1.0.3",
      "_shasum": "dffc80f6d6b04223f2226aa79dd194231096d008",
      "_from": ".",
      "_npmVersion": "2.6.0",
      "_nodeVersion": "0.10.26",
      "_npmUser": {
        "name": "bevacqua",
        "email": "nicolasbevacqua@gmail.com"
      },
      "maintainers": [
        {
          "name": "bevacqua",
          "email": "nicolasbevacqua@gmail.com"
        }
      ],
      "dist": {
        "shasum": "dffc80f6d6b04223f2226aa79dd194231096d008",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/fuzzysearch/-/fuzzysearch-1.0.3.tgz",
        "integrity": "sha512-s+kNWQuI3mo9OALw0HJ6YGmMbLqEufCh2nX/zzV5CrICQ/y4AwPxM+6TIiF9ItFCHXFCyM/BfCCmN57NTIJuPg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDLBlz9VyQzPSAfJcLDk5fi3ZeklKOYpZC9/ax0OrXqgAIhAI9lFzC+sz4jleefWzdQcaM+ERJMpwbhte4UiIuh9yKW"
          }
        ]
      }
    }
  },
  "name": "fuzzysearch",
  "time": {
    "modified": "2026-05-15T12:03:40.512Z",
    "created": "2015-03-03T19:53:04.724Z",
    "1.0.0": "2015-03-03T19:53:04.724Z",
    "1.0.1": "2015-03-03T22:48:44.268Z",
    "1.0.2": "2015-03-05T01:54:01.732Z",
    "1.0.3": "2015-03-06T16:12:53.547Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/bevacqua/fuzzysearch"
}