<commit_before># mimus [![Circle CI](https://circleci.com/gh/brentlintner/mimus.svg?style=svg)](https://circleci.com/gh/brentlintner/mimus)

[![NPM version](https://badge.fury.io/js/mimus.svg)](http://badge.fury.io/js/mimus)

A stubbing library with a focus on having:

* A simple API.
* Dependency injection and auto stubbing.
* A decoupled relationship with test runners.

Note: Currently this project is using [Sinon](http://sinonjs.org) and
[Rewire](https://www.npmjs.org/package/rewire). Check them out!

## Installation

    npm install mimus

## Usage

```javascript
  var mimus = require('mimus')
```

### mimus.require

This is the main method that you will use. It will require only the module
you want to test against, while stubbing any specified internal modules,<commit_msg>Let's add some vile badges.<commit_after># mimus [![Circle CI](https://circleci.com/gh/brentlintner/mimus.svg?style=svg)](https://circleci.com/gh/brentlintner/mimus) [![score-badge](https://vile.io/api/v0/projects/mimus/badges/score?token=<KEY>)](https://vile.io/~brentlintner/mimus) [![security-badge](https://vile.io/api/v0/projects/mimus/badges/security?token=<KEY>)](https://vile.io/~brentlintner/mimus) [![coverage-badge](https://vile.io/api/v0/projects/mimus/badges/coverage?token=<KEY>)](https://vile.io/~brentlintner/mimus) [![dependency-badge](https://vile.io/api/v0/projects/mimus/badges/dependency?token=<KEY>)](https://vile.io/~brentlintner/mimus) [![NPM version](https://badge.fury.io/js/mimus.svg)](http://badge.fury.io/js/mimus)

A stubbing library with a focus on having:

* A simple API.
* Dependency injection and auto stubbing.
* A decoupled relationship with test runners.

Note: Currently this project is using [Sinon](http://sinonjs.org) and [Rewire](https://www.npmjs.org/package/rewire). Check them out!

## Installation

    npm install mimus

## Usage

```javascript
  var mimus = require('mimus')
```

### mimus.require

This is the main method that you will use. It will require only the module
you want to test against, while stubbing any specified internal modules,
{'fraction_non_alphanumeric': 0.1613058089294287, 'fraction_numerical': 0.0019203072491598655, 'mean_word_length': 4.97134670487106, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 16, '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': '1806862', 'n_tokens_mistral': 770, 'n_tokens_neox': 710, 'n_words': 159}