<commit_before># castform

![castform](http://cdn.bulbagarden.net/upload/thumb/f/f3/351Castform.png/110px-351Castform.png)

Form validation on the client and server.

# usage

### server.js using connect

Castform can work with the a server instance and can also be a middleware for connect, express, and flatiron. See the examples folder for working examples.

```js
var castform = require('castform');

// server
var server = http.createServer();
castform(options, server);

// middleware
connect()<commit_msg>minor<commit_after># castform

![castform](http://cdn.bulbagarden.net/upload/thumb/f/f3/351Castform.png/110px-351Castform.png)

Form validation on the client and server.

# usage

### server.js

Castform can work with the a server instance and can also be a middleware for connect, express, and flatiron. See the examples folder for working examples.

```js
var castform = require('castform');

// server with core http module
var server = http.createServer();
castform(options, server);

// middleware using connectx
connect()
{'fraction_non_alphanumeric': 0.109720885466795, 'fraction_numerical': 0.019249278152069296, 'mean_word_length': 4.810055865921788, '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': '1609894', 'n_tokens_mistral': 325, 'n_tokens_neox': 307, 'n_words': 107}