<commit_before>google-oauth-jwt-stream
=======================

An [io.js][] [readable stream][] of [OAuth access tokens][] for use with [Google APIs][].

Example
-------

```javascript
import fs from "fs"
import {Token} from "google-oauth-jwt-stream"<commit_msg>add description<commit_after>google-oauth-jwt-stream
=======================

An [io.js][] [readable stream][] of [OAuth access tokens][] for use with [Google APIs][].

There are already several libraries that can generate Google service tokens, but I wanted one that:

- Allows keys to be streamed in, so you don't have to tie your app to a filesystem paths or make it async.
- Allows tokens to be streamed out, so that you don't have to build authorization failure detection and token refresh logic into your app.
- Makes the most of stable core runtime libraries.

Example
-------

```javascript
import fs from "fs"
import {Token} from "google-oauth-jwt-stream"
{'fraction_non_alphanumeric': 0.1553398058252427, 'fraction_numerical': 0.0, 'mean_word_length': 4.523809523809524, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '4452269', 'n_tokens_mistral': 272, 'n_tokens_neox': 256, 'n_words': 117}