<commit_before># township-media
![travis](https://travis-ci.org/staygrimm/township-media.svg)

A [Township](https://github.com/civicmakerlab/township) plugin that adds routes and methods for managing media uploads

## Example
``` js
var township = require('township')
var media = require('township-media')
var memdown = require('memdown')
var levelup = require('levelup')
var db = levelup('db', {db: memdown})

var mediaOptions = {
  uploadDir: __dirname + '/uploads'
}

var serverOptions = {
  apps: [media(db, mediaOptions)]
}

var server = township(db, serverOptions)

server.listen()
```

## License
MIT<commit_msg>update docs<commit_after># township-media
![travis](https://travis-ci.org/staygrimm/township-media.svg)

A [Township](https://github.com/civicmakerlab/township) plugin that adds routes and methods for managing media uploads.  Includes support for Amazon S3.

## Example
``` js
var township = require('township')
var media = require('township-media')
var memdown = require('memdown')
var levelup = require('levelup')
var db = levelup('db', {db: memdown})

var options = {
  uploadDir: __dirname + '/uploads'
}

var server = township(db)
server.add(media(db, options, server))
server.listen()
```

## License
MIT
{'fraction_non_alphanumeric': 0.15052888527257932, 'fraction_numerical': 0.0008136696501220504, 'mean_word_length': 5.439790575916231, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '3533361', 'n_tokens_mistral': 414, 'n_tokens_neox': 400, 'n_words': 104}