<commit_before># Type safe Option and Result type

Inspired by Rust.

Previously known on npm as [tsp-monads](https://www.npmjs.com/package/tsp-monads).

[![CircleCI](https://img.shields.io/circleci/project/github/Threestup/monads.svg)](https://circleci.com/gh/Threestup/monads)
![Codecov](https://img.shields.io/codecov/c/github/Threestup/monads.svg)
[![npm version](https://img.shields.io/npm/v/@threestup/monads.svg)](https://www.npmjs.com/package/@threestup/monads)

**NOTE:** Works with TypeScript 2+ _and_ JavaScript (ES6+). `strictNullChecks` option / flag strongly recommended.

## Documentation

- [Option Type](https://github.com/threestup/monads/tree/master/src/Option)
- [Result Type](https://github.com/threestup/monads/tree/master/src/Result)

## Install
<commit_msg>docs(readme): add GuardRails badge (#56)<commit_after># Type safe Option and Result type

Inspired by Rust.

Previously known on npm as [tsp-monads](https://www.npmjs.com/package/tsp-monads).

[![CircleCI](https://img.shields.io/circleci/project/github/Threestup/monads.svg)](https://circleci.com/gh/Threestup/monads)
![Codecov](https://img.shields.io/codecov/c/github/Threestup/monads.svg)
[![npm version](https://img.shields.io/npm/v/@threestup/monads.svg)](https://www.npmjs.com/package/@threestup/monads) [![GuardRails badge](https://badges.production.guardrails.io/Threestup/monads.svg)](https://www.guardrails.io)

**NOTE:** Works with TypeScript 2+ _and_ JavaScript (ES6+). `strictNullChecks` option / flag strongly recommended.

## Documentation

- [Option Type](https://github.com/threestup/monads/tree/master/src/Option)
- [Result Type](https://github.com/threestup/monads/tree/master/src/Result)

## Install

{'fraction_non_alphanumeric': 0.18058823529411766, 'fraction_numerical': 0.0035294117647058825, 'mean_word_length': 5.276752767527675, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 18, 'lorem ipsum': 0, 'www.': 5, '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': '31002', 'n_tokens_mistral': 656, 'n_tokens_neox': 611, 'n_words': 84}