<commit_before># Simpl3s

Small, fast, quick and easy node.js file flinger with a silly name.

## Features
* Small static file HTTP server
* Fast!
* CSS/HTML/JS files are automatically minified and gzipped
* JSON/TXT/XML file are automatically gzipped
* Silly name

## Quick usage
    require('simpl3s').server();


## Sample configuration
    var simpl3s = require('simpl3s'),
        config = {
            gzip: true,
            port: 8081,
            path: './public'
        };

    simpl3s.server(config);


## Serve a single file
    var simpl3s = require('simpl3s');

    simpl3s.serveFile(req, res);


## Just optimise static assets

    require('simpl3s').speedify('./public');


## Notes
Explicit port configuration will be ignored if a cloud environment is detected. Defaults to 8081 when no port is specified.

## Installation

#### npm
* npm install simpl3s

#### Localhost
* Ensure node.js is installed (http://nodejs.org)
* CD to the freezing-tribble directory
* sudo npm install
* sudo npm update
* node simpl3s.js

#### AWS EB
* Create a zip archive containing this app (ensure package.json is in the root)
* Open AWS EB console
* Choose 'upload archive' option.

#### Heroku
The most convenient approach is to configure your heroku app to listen for commits to github and automatically deploy from a designated branch.

##### Manually from git repo
* ~ heroku git:remote -a heroku-app-name
* ~ git push heroku master

##### Alternatives
* https://devcenter.heroku.com/articles/deploying-nodejs

#### Azure
* http://azure.microsoft.com/en-us/documentation/articles/cloud-services-nodejs-develop-deploy-app/<commit_msg>Readme tweaks (package)<commit_after># Simpl3s

Small, fast, quick and easy node.js file flinger with a silly name.

## Features
* Small static file HTTP server
* Fast!
* CSS/HTML/JS files are automatically minified and gzipped
* JSON/TXT/XML file are automatically gzipped
* Silly name

## Quick usage
    require('simpl3s').server();


## Sample configuration
    var simpl3s = require('simpl3s'),
        config = {
            gzip: true,
            port: 8081,
            path: './public'
        };

    simpl3s.server(config);


## Serve a single file
    var simpl3s = require('simpl3s');

    simpl3s.serveFile(req, res);


## Just optimise static assets

    require('simpl3s').speedify('./public');


## Notes
Explicit port configuration will be ignored if a cloud environment is detected. Defaults to 8081 when no port is specified.

## Installation

#### npm
* npm install simpl3s
{'fraction_non_alphanumeric': 0.10738255033557047, 'fraction_numerical': 0.014607185155941572, 'mean_word_length': 3.376511226252159, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '3243172', 'n_tokens_mistral': 785, 'n_tokens_neox': 727, 'n_words': 265}