<commit_before># Snoocore

A minimal and complete JavaScript driver for the Reddit API.

### [View the documentation](http://trevorsenior.github.io/snoocore)

## Quick Start

**Install**

`npm install snoocore` || `bower install snoocore`

**Examples**

 - [Online Demo](http://plnkr.co/edit/7zppWOM9QjSMdVuYQU2s?p=preview)
 - [Code Examples](https://github.com/trevorsenior/snoocore/tree/master/examples)

**Quick Demo**

Get "hot" posts site wide or from a specific subreddit.

 - API Endpoint: http://www.reddit.com/dev/api#GET_hot
 - Path: `GET [/r/subreddit]/hot`

```javascript
var Snoocore = require('snoocore');
var reddit = new Snoocore({ userAgent: 'myApp v0.0.0' });

var frontpagePromise = reddit('/hot').get();

var netsecPromise = reddit('/r/$subreddit/hot').get({
	$subreddit: 'netsec',
	limit: 10
});
```

 - See [Basic Usage](http://trevorsenior.github.io/snoocore/basicUsage.html) for an explanation on calling endpoints with parameters, URL parameters (as in `$subreddit` above), and more.
 - Check out a [basic overview of promises](http://trevorsenior.github.io/snoocore/promises.html) if you're not familiar with them. Every call to snoocore will return one.

## Features

**All endpoints are supported**<commit_msg>update readme to point to new example repo<commit_after># Snoocore

A minimal and complete JavaScript driver for the Reddit API.

### [View the documentation](http://trevorsenior.github.io/snoocore)

## Quick Start

**Install**

`npm install snoocore` || `bower install snoocore`

**Examples**

 - [Online Demo](http://plnkr.co/edit/7zppWOM9QjSMdVuYQU2s?p=preview)
 - [Code Examples](https://github.com/trevorsenior/snoocore-examples/tree/master)

**Quick Demo**

Get "hot" posts site wide or from a specific subreddit.

 - API Endpoint: http://www.reddit.com/dev/api#GET_hot
 - Path: `GET [/r/subreddit]/hot`

```javascript
var Snoocore = require('snoocore');
var reddit = new Snoocore({ userAgent: 'myApp v0.0.0' });

var frontpagePromise = reddit('/hot').get();

var netsecPromise = reddit('/r/$subreddit/hot').get({
	$subreddit: 'netsec',
	limit: 10
});
```

 - See [Basic Usage](http://trevorsenior.github.io/snoocore/basicUsage.html) for an explanation on calling endpoints with parameters, URL parameters (as in `$subreddit` above), and more.
 - Check out a [basic overview of promises](http://trevorsenior.github.io/snoocore/promises.html) if you're not familiar with them. Every call to snoocore will return one.

## Features

**All endpoints are supported**
{'fraction_non_alphanumeric': 0.1469061876247505, 'fraction_numerical': 0.006387225548902195, 'mean_word_length': 4.800925925925926, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2027679', 'n_tokens_mistral': 881, 'n_tokens_neox': 868, 'n_words': 230}