<commit_before>aja.js
======

Ajax without XML : Asynchronous Javascript and JavaScript/JSON(P)

## Basic Sample

Request JSON data

```javascript
  aja()
    .url('/api/data.json')
    .on('success', function(data){
        //data is a JavaScript object
    })
    .go();
```


Load html into an element

```javascript
  aja()
    .url('/views/page.html')
    .into('.container')
    .go();
```


More options using the fluent api, terrific REST client.

```javascript
  aja()
    .method('GET')
    .url('/api/customer')
    .data({firstname: '<NAME>'})
    .on('200', function(response){
        //well done
    })
    .go();

  aja()
    .method('PUT')
    .url('/api/customer')
    .body({id : 12, firstname: '<NAME>', job : 'linguist'})
    .on('200', function(response){
        //well done
    })
    .on('500', function(response){
        //oh crap
    })
    .go();
```
<commit_msg>update readme test and license<commit_after>aja.js
======

Ajax without XML : Asynchronous Javascript and JavaScript/JSON(P)

## Basic Sample

Request JSON data

```javascript
  aja()
    .url('/api/data.json')
    .on('success', function(data){
        //data is a JavaScript object
    })
    .go();
```

Load html into an element

```javascript
  aja()
    .url('/views/page.html')
    .into('.container')
    .go();
```

More options using the fluent api, terrific REST client.

```javascript
  aja()
    .method('GET')
    .url('/api/customer')
    .data({firstname: '<NAME>'})
    .on('200', function(response){
        //well done
    })
    .go();

  aja()
    .method('PUT')
    .url('/api/customer')
    .body({id : 12, firstname: '<NAME>', job : 'linguist'})
    .on('200', function(response){
        //well done
    })
    .on('500', function(response){
        //oh crap
    })
    .go();
```

## Development

### Setup 

You need [grunt >= 0.4][grunt] as well as [node] and [npm] installed and running on your system.

```
git clone https://github.com/krampstudio/aja.js.git
cd aja.js
npm install
```

### Tests

Run the tests: 

```
grunt test
```

### Development

The dev of this library is based on TDD principle. So, dev means *write tests*. Run the developent server :

```
grunt devtest
```

So tests run once something is modified and you can access it also at http://localhost:9901/test

## License

Copyright (c) 2014 <NAME> `<"chevrier_bertrand gmail_com".replace(/\s/, '@').replace(/_/g, '.')>`
Licensed under the MIT license.


[grunt]: https://gruntjs.com
[node]: http://nodejs.org
[npm]: http://npmjs.org
{'fraction_non_alphanumeric': 0.1880443388756928, 'fraction_numerical': 0.012668250197941409, 'mean_word_length': 2.7772795216741404, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1129724', 'n_tokens_mistral': 905, 'n_tokens_neox': 833, 'n_words': 235}