<commit_before># restiny.js


This is a damn simple / tiny / clever REST client for Javascript.

Please note: this is an early alpha version, developed in quarter of
hour, not tested, and not reliable. But extremely simple to use :)


## Usage


An example of hitting GitHub API and fetching my followers (using jQuery).

```javascript

var github = new Restiny('https://api.github.com');

github.get('users/marcinn').then(function(user) {
    github.get(user.followers_url).then(function(followers) {
        console.log(followers);
    });
});
<commit_msg>JSFiddle link<commit_after># restiny.js


This is a damn simple / tiny / clever REST client for Javascript.

Please note: this is an early alpha version, developed in quarter of
hour, not tested, and not reliable. But extremely simple to use :)


## Usage


An example of hitting GitHub API and fetching my followers (using jQuery).
[Test on JSFiddle](https://jsfiddle.net/nzdhk85q/embedded/result/).

```javascript

var github = new Restiny('https://api.github.com');

github.get('users/marcinn').then(function(user) {
    github.get(user.followers_url).then(function(followers) {
        console.log(followers);
    });
});

{'fraction_non_alphanumeric': 0.11908783783783784, 'fraction_numerical': 0.0016891891891891893, 'mean_word_length': 4.12987012987013, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 2, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3645679', 'n_tokens_mistral': 372, 'n_tokens_neox': 344, 'n_words': 118}