# bin-string-search

> a string binary test filter to improve string search times

Latest version **0.0.1** (published 2016-06-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install bin-string-search
pnpm add bin-string-search
yarn add bin-string-search
bun add bin-string-search
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2016-06-10 |
| First published | 2016-06-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | dave@wonderlandlabs.com |
| Maintainers | bingomanatee |

## Links

- npm: https://www.npmjs.com/package/bin-string-search
- Repository: https://github.com/bingomanatee/bin-string-search
- Issues: https://github.com/bingomanatee/bin-string-search/issues
- npm.io page: https://npm.io/package/bin-string-search

## Dependencies (1)

- [graceful-fs](https://npm.io/package/graceful-fs.md) ^4.1.3

## Recent versions

- 0.0.1 (latest) — 2016-06-10

## README

# bin-string-search

Search for strings in a collection in up to half the time by using a reductive index that creates a single integer that
represents the set of characters in the search terms. 

single word searches can take 1/6 to 3/4 the time of an unindexed string search; average times are around 1/3.

## How does it work?

Most searches compare sequences of strings. This algorithm reduces a string no matter how long to a 32 bit integer that
represents the inclusion or exclusion of its character set.

The first 26 bits map to the alphabet. the remaining bits represent spaces, digits and the more exotic characters (punctuation etc.)

The search term is likewise reduced to a single integer; only when the target is determined to have all the requisite characters and exotics
does a full search conclude. 

[![Travis build status](http://img.shields.io/travis/bingomanatee/bin-string-search.svg?style=flat)](https://travis-ci.org/bingomanatee/bin-string-search)
[![Code Climate](https://codeclimate.com/github/bingomanatee/bin-string-search/badges/gpa.svg)](https://codeclimate.com/github/bingomanatee/bin-string-search)
[![Test Coverage](https://codeclimate.com/github/bingomanatee/bin-string-search/badges/coverage.svg)](https://codeclimate.com/github/bingomanatee/bin-string-search)
[![Dependency Status](https://david-dm.org/bingomanatee/bin-string-search.svg)](https://david-dm.org/bingomanatee/bin-string-search)
[![devDependency Status](https://david-dm.org/bingomanatee/bin-string-search/dev-status.svg)](https://david-dm.org/bingomanatee/bin-string-search#info=devDependencies)

---
_Source: https://npm.io/package/bin-string-search · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
