<commit_before># node-shark-di
Easy to use DI container for node.

## First: Create a shark-di module
    // my-module.js
    const di = require('shark-di');
    const Module = di.Module;


    var main = new Module();

    main.bind('db', function(){

        return function(){
             return {name: '<NAME>'}; 
        };

    });

    main.bind('repository', function(db){

         return function(id){
               var data = db();
               data.id = id;
               return data;
         };
    });

    exports = module.exports = main;

## Second: Create a shark-di Container and load your Modules
    // di.js
    const Container = require('shark-di').Container;
    const mainModule = require('./my-module.js');

    var container = new Container();

    container.load([mainModule]);

    exports = module.exports = container;

## Third: Require your container
    // index.js
    const container = require('./di.js');

    container.get(function(err, repository){

        console.log(err);
        console.log(repository(0));

    });
<commit_msg>Just javascript syntax highlighting in README.md<commit_after># node-shark-di
Easy to use DI container for node.

## First: Create a shark-di module
```javascript 
   // my-module.js
    const di = require('shark-di');
    const Module = di.Module;


    var main = new Module();

    main.bind('db', function(){

        return function(){
             return {name: '<NAME>'}; 
        };

    });

    main.bind('repository', function(db){

         return function(id){
               var data = db();
               data.id = id;
               return data;
         };
    });

    exports = module.exports = main;
```
## Second: Create a shark-di Container and load your Modules
```javascript 
    // di.js
    const Container = require('shark-di').Container;
    const mainModule = require('./my-module.js');

    var container = new Container();

    container.load([mainModule]);

    exports = module.exports = container;
```
## Third: Require your container
```javascript 
    // index.js
    const container = require('./di.js');

    container.get(function(err, repository){

        console.log(err);
        console.log(repository(0));

    });
```

{'fraction_non_alphanumeric': 0.1459170013386881, 'fraction_numerical': 0.000892458723784025, 'mean_word_length': 2.207439198855508, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7259075', 'n_tokens_mistral': 660, 'n_tokens_neox': 609, 'n_words': 172}