<commit_before>Matcher library for [Bacon.js](https://github.com/raimohanska/bacon.js).

You can map a Property / EventStream to a `boolean` one like using `.is()`

    // Returns a Property of Booleans
    age.is().equalTo(65)
    salary.is.greaterThan(1000)

You can also filter using `.where()`

    // Returns a filtered stream
    keyUps.map(".keyCode").where().equalTo(30)

And there's negation

    age.is().not().greaterThan(18)
    
You can compare to either constant values or other Observables. Like

    // Returns a Property of Booleans
    var collision = playerPos.is().equalTo(monsterPos)    
    
Complete examples:

    Bacon.fromArray([1,2,3]).is().equalTo(2)
    
    => false, true, false
    
    Bacon.fromArray([1,2,3]).where().equalTo(2)
    
    => 2

## Additions to Observable API

`Observable.is()` returns a `Matchers` object for mapping to booleans.

`Observable.where()` returns a `Matchers` object for filtering.

## Matchers API

`lessThan(x)` applies `<` matcher

`greaterThan(x)` applies `>´ matcher

`equalTo(x)` applies `==` matcher

`truthy()` applies "truthy" matcher

`not()` returns a negated `Matchers` object

## Download / Install

- Download [javascript file](https://raw.github.com/raimohanska/bacon.matchers/master/bacon.matchers.js)
- NPM: registered as `bacon-matchers`
- Bower: registered as `bacon-matchers`<commit_msg>Fix NPM and Bower module names in README.md<commit_after>Matcher library for [Bacon.js](https://github.com/raimohanska/bacon.js).

You can map a Property / EventStream to a `boolean` one like using `.is()`

    // Returns a Property of Booleans
    age.is().equalTo(65)
    salary.is.greaterThan(1000)

You can also filter using `.where()`

    // Returns a filtered stream
    keyUps.map(".keyCode").where().equalTo(30)

And there's negation

    age.is().not().greaterThan(18)
    
You can compare to either constant values or other Observables. Like

    // Returns a Property of Booleans
    var collision = playerPos.is().equalTo(monsterPos)    
    
Complete examples:

    Bacon.fromArray([1,2,3]).is().equalTo(2)
    
    => false, true, false
    
    Bacon.fromArray([1,2,3]).where().equalTo(2)
    
    => 2

## Additions to Observable API

`Observable.is()` returns a `Matchers` object for mapping to booleans.

`Observable.where()` returns a `Matchers` object for filtering.

## Matchers API

`lessThan(x)` applies `<` matcher

`greaterThan(x)` applies `>´ matcher

`equalTo(x)` applies `==` matcher

`truthy()` applies "truthy" matcher

`not()` returns a negated `Matchers` object

## Download / Install

- Download [javascript file](https://raw.github.com/raimohanska/bacon.matchers/master/bacon.matchers.js)
- NPM: registered as `bacon.matchers`
- Bower: registered as `bacon.matchers`
{'fraction_non_alphanumeric': 0.1388888888888889, 'fraction_numerical': 0.013708513708513708, 'mean_word_length': 3.7079796264855687, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4371960', 'n_tokens_mistral': 963, 'n_tokens_neox': 922, 'n_words': 248}