<commit_before># Admit One Mongo

[![NPM version][npm-image]][npm-url] [![Build status][travis-image]][travis-url] [![Code Climate][codeclimate-image]][codeclimate-url] [![Coverage Status][coverage-image]][coverage-url] [![Dependencies][david-image]][david-url] [![devDependencies][david-dev-image]][david-dev-url]

[Admit One][admit-one] adapter for MongoDB.

## Install

```
npm install admit-one admit-one-mongo
```

## Usage

```javascript
var admit = require('admit-one')('mongo', {
  mongo: {
    db: 'mongodb://localhost/dbname'
  }
});
```

Once you have created an instance, see the [main Admit One page][admit-one] for
details on how to set up your routes with Express.

## API

### admit([options])

#### options.mongo.db

Type: `String`  
Default: `undefined`


#### options.mongo.collection

Type: `String`  
Default: `'users'`

<commit_msg>Added save flag.<commit_after># Admit One Mongo

[![NPM version][npm-image]][npm-url] [![Build status][travis-image]][travis-url] [![Code Climate][codeclimate-image]][codeclimate-url] [![Coverage Status][coverage-image]][coverage-url] [![Dependencies][david-image]][david-url] [![devDependencies][david-dev-image]][david-dev-url]

[Admit One][admit-one] adapter for MongoDB.

## Install

```
npm install --save admit-one admit-one-mongo
```

## Usage

```javascript
var admit = require('admit-one')('mongo', {
  mongo: {
    db: 'mongodb://localhost/dbname'
  }
});
```

Once you have created an instance, see the [main Admit One page][admit-one] for
details on how to set up your routes with Express.

## API

### admit([options])

#### options.mongo.db

Type: `String`  
Default: `undefined`


#### options.mongo.collection

Type: `String`  
Default: `'users'`


{'fraction_non_alphanumeric': 0.19150174621653085, 'fraction_numerical': 0.0, 'mean_word_length': 5.117437722419929, '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': '3557259', 'n_tokens_mistral': 639, 'n_tokens_neox': 609, 'n_words': 137}