<commit_before>Bus Thing
=========

A message bus with logging.

```javascript
var createBus = require('bus-thing')

var bus = createBus()

bus.on('greeting').then(function(out, delivery) {
  out('render', '<p>' + delivery.greeting + '</p>')
})

bus.on('render').then(function(out, delivery) {
  document.write(delivery.render)
})

bus.tell('greeting', 'Hello!') // Writes '<p>Hello!</p>'
```

## Listen to multiple addresses
```javascript
bus
  // isLoading + items = user-items-empty
  .on('isLoading')
  .on('items')
  .then(function(out, delivery) {
    out('user-items-empty',<commit_msg>delivery -> deliveries<commit_after>Bus Thing
=========

A message bus with logging.

```javascript
var createBus = require('bus-thing')

var bus = createBus()

bus.on('greeting').then(function(out, deliveries) {
  out('render', '<p>' + deliveries.greeting + '</p>')
})

bus.on('render').then(function(out, deliveries) {
  document.write(deliveries.render)
})

bus.tell('greeting', 'Hello!') // Writes '<p>Hello!</p>'
```

## Listen to multiple addresses
```javascript
bus
  .on('isLoading')
  .on('items')
  .then(function(out, delivery) {
    out('user-items-empty',
{'fraction_non_alphanumeric': 0.2153316106804479, 'fraction_numerical': 0.0, 'mean_word_length': 4.928571428571429, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, 'https://': 0, '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': '6898657', 'n_tokens_mistral': 408, 'n_tokens_neox': 397, 'n_words': 79}