<commit_before># express-ims-lti

[![Build Status](https://travis-ci.org/Tape/express-ims-lti.svg?branch=master)](https://travis-ci.org/Tape/express-ims-lti)

This module provides a way to use ims-lti module with Express. It is capable of detecting a LTI login requests and intelligently restoring an LTI provider instance from an Express session automatically.

This extension is still under development and is not yet ready to be used in a production environment.<commit_msg>Typos for the readme and usage<commit_after># express-ims-lti

[![Build Status](https://travis-ci.org/Tape/express-ims-lti.svg?branch=master)](https://travis-ci.org/Tape/express-ims-lti)

This module provides a way to use the [ims-lti](https://github.com/omsmith/ims-lti) module with Express. It is capable of detecting LTI login requests and intelligently restoring an LTI provider instance from an Express session automatically.

## Usage

Usage for the module is fairly straightfoward.

```js
var ltiMiddleware = require("express-ims-lti");

// ... Construct your application ...

app.use(ltiMiddleware({
  consumer_key: "key",       // Required.
  consumer_secret: "secret", // Required.
  store: {                   // Optional.
    type: "redis",           // If store is omitted memory will be used.
    client: redisClient      // Required when using Redis.
  }
}));
```
{'fraction_non_alphanumeric': 0.11365313653136531, 'fraction_numerical': 0.0, 'mean_word_length': 3.6597938144329896, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, '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': '2386220', 'n_tokens_mistral': 402, 'n_tokens_neox': 396, 'n_words': 134}