<commit_before># tilestrata-mbtiles
[![NPM version](http://img.shields.io/npm/v/tilestrata-mapnik.svg?style=flat)](https://www.npmjs.org/package/tilestrata-mapnik)
[![Build Status](https://travis-ci.org/naturalatlas/tilestrata-mapnik.svg)](https://travis-ci.org/naturalatlas/tilestrata-mapnik)
[![Coverage Status](http://img.shields.io/coveralls/naturalatlas/tilestrata-mapnik/master.svg?style=flat)](https://coveralls.io/r/naturalatlas/tilestrata-mapnik)

A [TileStrata](https://github.com/naturalatlas/tilestrata) plugin for rendering tiles with [mapnik](http://mapnik.org/). This package will use the latest version of [node-mbtiles](https://github.com/mapbox/node-mbtiles), unless it's already in your dependency tree (which allows you to pin it to a version if needed).

#```sh
#$ npm install tilestrata-mbtiles --save
#```

### Sample Usage

```js
var mbtiles = require('tilestrata-mbtiles');

server.layer('mylayer')
    .route('tile.png').use(mbtiles({
        pathname: '/path/to/map.mbtiles',
        scale: 1,
        tileSize: 256
    });
```<commit_msg>tilestrata mbtiles provider<commit_after># tilestrata-mbtiles
[![NPM version](http://img.shields.io/npm/v/tilestrata-mapnik.svg?style=flat)](https://www.npmjs.org/package/tilestrata-mapnik)
[![Build Status](https://travis-ci.org/naturalatlas/tilestrata-mapnik.svg)](https://travis-ci.org/naturalatlas/tilestrata-mapnik)
[![Coverage Status](http://img.shields.io/coveralls/naturalatlas/tilestrata-mapnik/master.svg?style=flat)](https://coveralls.io/r/naturalatlas/tilestrata-mapnik)

A [TileStrata](https://github.com/naturalatlas/tilestrata) plugin for rendering tiles with [mbtiles](http://mapbox.com/). This package will use the latest version of [node-mbtiles](https://github.com/mapbox/node-mbtiles), unless it's already in your dependency tree (which allows you to pin it to a version if needed).

#```sh
#```
#$ npm install tilestrata-mbtiles --save


### Sample Usage

```js
var mbtiles = require('tilestrata-mbtiles');

server.layer('mylayer')
    .route('tile.png').use(mbtiles({
        pathname: '/path/to/map.mbtiles',
        scale: 1,
        tileSize: 256
    });
```
{'fraction_non_alphanumeric': 0.17225325884543763, 'fraction_numerical': 0.0037243947858473, 'mean_word_length': 4.808108108108108, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, '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': '4834033', 'n_tokens_mistral': 781, 'n_tokens_neox': 766, 'n_words': 126}