<commit_before># github-oauth [![Build Status](https://secure.travis-ci.org/henrahmagix/github-oauth.png?branch=master)](http://travis-ci.org/henrahmagix/github-oauth)

Easy creation of GitHub OAuth tokens.

## Getting Started
Install the module with: `npm install github-oauth`

```javascript
var oauth = require('github-oauth');

// Prompt for username, password, two-factor auth code if required,
// and return a GitHub token with basic scope.
var moonriseToken = oauth({
    name: 'moonrise-kingdom'
});

// Prompt for a token for read/write access to public repositories
// and organisations and write access to Gists.
var rushmoreToken = oauth({
    name: 'rushmore',
    scopes: ['public_repo', 'gist']
});

// Set prompt messages (mild customisation).
var aquaticToken = oauth({
    name: 'the-life-aquatic',
    prompt: {<commit_msg>Add link to GitHub API docs for auth scopes<commit_after># github-oauth [![Build Status](https://secure.travis-ci.org/henrahmagix/github-oauth.png?branch=master)](http://travis-ci.org/henrahmagix/github-oauth)

Easy creation of GitHub OAuth tokens.

## Getting Started
Install the module with: `npm install github-oauth`

```javascript
var oauth = require('github-oauth');

// Prompt for username, password, two-factor auth code if required,
// and return a GitHub token with basic scope.
var moonriseToken = oauth({
    name: 'moonrise-kingdom'
});

// Prompt for a token for read/write access to public repositories
// and organisations and write access to Gists.
// More scopes: https://developer.github.com/v3/oauth/#scopes
var rushmoreToken = oauth({
    name: 'rushmore',
    scopes: ['public_repo', 'gist']
});

// Set prompt messages (mild customisation).
var aquaticToken = oauth({
    name: 'the-life-aquatic',
    prompt: {
{'fraction_non_alphanumeric': 0.13063063063063063, 'fraction_numerical': 0.0005630630630630631, 'mean_word_length': 4.288690476190476, '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': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1930985', 'n_tokens_mistral': 577, 'n_tokens_neox': 559, 'n_words': 173}