<commit_before># Wrapper Generator

API Wrapper Generator

# NOTE

Not currently working

# Example - Wrap API

Multiple methods

```javacript

var wrap = require('wrapper-generator').wrap;

var wrappedAPI = wrap({
  // '/'
  handles : {
    POST : {
      validate : {},
      handler : function() {},
    },
  },
  children : {

  }
});

```<commit_msg>Added basic usage to README<commit_after># Wrapper Generator

API Wrapper Generator

# NOTE

Not currently working

# Example - Wrap API

Multiple methods

```javacript

var wrap = require('wrapper-generator').wrap;
var Joi = require('joi');

var api = wrap('https://api.github.com/users/mralexgray/repos', {
  // '/'
  handlers : {
    GET : {
      validate : Joi.any(),
      handler : function() {},
    },
  },
  children : {
    foo : {
      // '/foo'
      handlers : {
        GET : {
          validate : {},
          handler : function() {},
        },
      },
    },
  },
});

api({
    method : 'GET',
  })
  .then(function(response) {
    console.log('Success', response);
  })
  .catch(function(err) {
    console.error('!!Error: ', err);
  });

```
{'fraction_non_alphanumeric': 0.17127564674397858, 'fraction_numerical': 0.0, 'mean_word_length': 2.3392857142857144, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '3123262', 'n_tokens_mistral': 378, 'n_tokens_neox': 371, 'n_words': 80}