<commit_before># [WIP] EasyAgent

EasyAgent is nothing more than a wrapper library of [fetch API](https://fetch.spec.whatwg.org/) but EasyAgent certainly helps your using fetch API. Anyhow, view a [examples](#examples) and [docs](#installation).

## Features

- Simple APIs resembling the [visionmedia/superagent](https://github.com/visionmedia/superagent).
- Returns Promise through from [fetch API](https://fetch.spec.whatwg.org/).
- Extend with plugin.
- Immutable setters.
- It can run on client-side and Node.js.

## Example

```javascript
import request from 'easyagent';

request.get('https://api.github.com/search/repositories')
  .setQueries({ q: 'easyagent' })
  .getJSON()
  .then(json => {
    console.log(json);
  })
  .catch(err => {
    console.error(err);
  });
```

## Installation

```
npm i -S easyagent
```

```javascript
// in ES5
var request = require('easyagent');

// in ES6
import request from 'easyagent';
```

## API

### request.get(url, [options])
### request.post(url, [options])
### request.put(url, [options])
### request.del(url, [options])
### request.head(url, [options])
### request.opt(url, [options])

returns instance of EasyAgent.

```javascript
const easyagent = request.get('https://api.github.com/search/repositories');
// => instance of EasyAgent
```

#### easyagent.setUrl(url)
#### easyagent.setMethod(method)
#### easyagent.setHeaders(url)
#### easyagent.setBody(body)
#### easyagent.setJSONBody(url)
#### easyagent.setFormBody(url)
#### easyagent.setQueries(url)
#### easyagent.setOptions(options)

#### easyagent.getResponse()
#### easyagent.getJSON()
#### easyagent.getText()
#### easyagent.getHTML()

#### easyagent.use(plugin)

### request.globalUse(plugin)
### request.globalUnuse(plugin)
### request.globalUnuseAll()<commit_msg>Add a description related to license in README<commit_after># [WIP] EasyAgent

EasyAgent is nothing more than a wrapper library of [fetch API](https://fetch.spec.whatwg.org/) but EasyAgent certainly helps your using fetch API. Anyhow, view a [examples](#examples) and [docs](#installation).

## Features

- Simple APIs resembling the [visionmedia/superagent](https://github.com/visionmedia/superagent).
- Returns Promise through from [fetch API](https://fetch.spec.whatwg.org/).
- Extend with plugin.
- Immutable setters.
- It can run on client-side and Node.js.

## Example

```javascript
import request from 'easyagent';

request.get('https://api.github.com/search/repositories')
  .setQueries({ q: 'easyagent' })
  .getJSON()
  .then(json => {
    console.log(json);
  })
  .catch(err => {
    console.error(err);
  });
```

## Installation

```
npm i -S easyagent
```

```javascript
// in ES5
var request = require('easyagent');

// in ES6
import request from 'easyagent';
```

## API

### request.get(url, [options])
### request.post(url, [options])
### request.put(url, [options])
### request.del(url, [options])
### request.head(url, [options])
### request.opt(url, [options])

returns instance of EasyAgent.

```javascript
const easyagent = request.get('https://api.github.com/search/repositories');
// => instance of EasyAgent
```

#### easyagent.setUrl(url)
#### easyagent.setMethod(method)
#### easyagent.setHeaders(url)
#### easyagent.setBody(body)
#### easyagent.setJSONBody(url)
#### easyagent.setFormBody(url)
#### easyagent.setQueries(url)
#### easyagent.setOptions(options)

#### easyagent.getResponse()
#### easyagent.getJSON()
#### easyagent.getText()
#### easyagent.getHTML()

#### easyagent.use(plugin)

### request.globalUse(plugin)
### request.globalUnuse(plugin)
### request.globalUnuseAll()

## License

MIT
{'fraction_non_alphanumeric': 0.1892639734366353, 'fraction_numerical': 0.0011068068622025456, 'mean_word_length': 5.055276381909548, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 10, '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': '996291', 'n_tokens_mistral': 1194, 'n_tokens_neox': 1143, 'n_words': 256}