<commit_before># ToolBelt

A set of helpers, that makes the daily work with node a bit easier.

Contributes are welcome!

[![Build Status](https://secure.travis-ci.org/piscis/toolbelt.png)](http://travis-ci.org/piscis/toolbelt)

## Installation

    $ npm install toolbelt

## Running Tests

To run the tests first invoke the following command to install all dev dependencies.

    $ npm install

Run the tests with
 
    $ npm test

## Modules

### Basic usage

Load and use a module:

    var helper = require('toolbelt').pick([module_namespace]);
    var data = helper([do_your_thing]);

### Module: base/extend

Merge the contents of two or more objects together into the first object.    

    extend( target [, object1] [, objectN] );

**target** An object that will receive the new properties
**object1** An object containing additional properties to merge in.
**object2** Additional objects containing properties to merge in.

#### Examples:

**Shallow extend**

    var extend = require('toolbelt').pick('base/extend');<commit_msg>fixing format<commit_after># ToolBelt

A set of helpers, that makes the daily work with node a bit easier.

Contributes are welcome!

[![Build Status](https://secure.travis-ci.org/piscis/toolbelt.png)](http://travis-ci.org/piscis/toolbelt)

## Installation

    $ npm install toolbelt

## Running Tests

To run the tests first invoke the following command to install all dev dependencies.

    $ npm install

Run the tests with
 
    $ npm test

## Modules

### Basic usage

Load and use a module:

    var helper = require('toolbelt').pick([module_namespace]);
    var data = helper([do_your_thing]);

### Module: base/extend

Merge the contents of two or more objects together into the first object.    

    extend( target [, object1] [, objectN] );

* **target** An object that will receive the new properties
* **object1** An object containing additional properties to merge in.
* **object2** Additional objects containing properties to merge in.

#### Examples:

**Shallow extend**

    var extend = require('toolbelt').pick('base/extend');
{'fraction_non_alphanumeric': 0.10977948226270375, 'fraction_numerical': 0.0028763183125599234, 'mean_word_length': 4.028915662650602, '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': '1106315', 'n_tokens_mistral': 612, 'n_tokens_neox': 583, 'n_words': 228}