<commit_before># Chusha

Tiny Dependency Injection Container for JavaScript applications.

# How to use

## Including Chusha

Depends on your current moduling system, Chusha offers multiple distribution files, all files have a minified version:

 - chusha.amd.js - for AMD modules (like RequireJS)
 - chusha.cjs.js - for CommonJS modules (like Browserify and NodeJS)
 - chusha.es6.js - for ES6 modules (like in a few years, or today with 6to5 or Google Traceur)
 - chusha.win.js - for no modules (a Chusha object will be appended to the window object. Please consider using a proper moduling system!)

## Usage

To define dependencies for an object, implement a static `inject()` method on the object, which return *an array of constructors*

```javascript
var HttpClient = require('./lib/HttpClient');

function MyObject(http) {<commit_msg>Improved documentation wrt the new dist files and UMD<commit_after># Chusha

Tiny Dependency Injection Container for JavaScript applications.

# How to use

## Installing

```
npm install --save chusha
```

## Including Chusha

### NodeJS

`var Chusha = require('chusha')` in your code to use it.

### Browser

The production ready files are in the `dist/` directory. There are two files, one minified and one not.

Chusha supports UMD-style modules, so it works with AMD and CommonJS.
If you have no moduling system (You should!!), you can still access the Chusha object on the global `window` object.

## Usage

To define dependencies for an object, implement a static `inject()` method on the object, which return *an array of constructors*

```javascript
var HttpClient = require('./lib/HttpClient');

function MyObject(http) {
{'fraction_non_alphanumeric': 0.0819377990430622, 'fraction_numerical': 0.0023923444976076554, 'mean_word_length': 4.449511400651466, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2780254', 'n_tokens_mistral': 491, 'n_tokens_neox': 468, 'n_words': 223}