<commit_before>on-ready
========

Wait for a list of readyable objects to be ready. Objects used must have two 
qualifications:

1. has an `on` method
2. emits a `ready` event
3. has or can have a `ready` boolean flag to note if ready


Install
-------

With [npm](https://npmjs.org)

```
npm install on-ready
```

Usage
-----

Node.js

```js
var onReady = require('on-ready')

// use on some redis clients
var redis = require('redis')
  , client1 = redis.createClient()
  , client2 = redis.createClient()

onReady([client1, client2], function(err) {
  // ...
})

// can call using arguments
onReady(client1, client2, function() { 
  // ...
})
```<commit_msg>Updating readme<commit_after>on-ready
========

Wait for a list of readyable objects to be ready. Objects used must have two 
qualifications:

1. has an `on` method
2. emits a `ready` event
3. has or can have a `ready` boolean flag to note if ready


Install
-------

With [npm](https://npmjs.org)

```
npm install on-ready
```

Usage
-----

Node.js

```js
var onReady = require('on-ready')

// use on some redis clients
var redis = require('redis')
  , client1 = redis.createClient()
  , client2 = redis.createClient()

onReady([client1, client2], function(err) {
  // ...

  client1.ready // true
  client2.ready // true
})

// can call using arguments
onReady(client1, client2, function() { 
  // ...
})

// repeated calls still work fine
onReady([client1], [client2], function() { 
  // ...
})
```
{'fraction_non_alphanumeric': 0.1678082191780822, 'fraction_numerical': 0.015068493150684932, 'mean_word_length': 3.1154929577464787, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2669056', 'n_tokens_mistral': 512, 'n_tokens_neox': 487, 'n_words': 161}