<commit_before># customs

[![Build Status](https://travis-ci.org/yoshuawuyts/customs.svg)](https://travis-ci.org/yoshuawuyts/customs)
[![Coverage Status](https://coveralls.io/repos/yoshuawuyts/customs/badge.png?branch=master)](https://coveralls.io/r/yoshuawuyts/customs?branch=master)

Type validator for node.js and the browser through [browserify](http://browserify.org/).

## Installation
With [node](nodejs.org) installed:

````
npm i --save customs
````

## Usage
````js
var customs = require('customs');

customs('string', 'Dad jokes');
// -> 'true'

customs('string', 1337);
// -> 'false'

customs(/d(b+)d/g, 'cdbbdbsbz');
// -> 'true'
````

## Supported types
- `array`
- `string`
- `number`
- `boolean`<commit_msg>Update examples<commit_after># customs

[![Build Status](https://travis-ci.org/yoshuawuyts/customs.svg)](https://travis-ci.org/yoshuawuyts/customs)
[![Coverage Status](https://coveralls.io/repos/yoshuawuyts/customs/badge.png?branch=master)](https://coveralls.io/r/yoshuawuyts/customs?branch=master)

Type validator for node.js and the browser through [browserify](http://browserify.org/).

## Installation
With [node](nodejs.org) installed:

````
npm i --save customs
````

## Usage
````js
var validate = require('customs');

validate('string', 'Dad jokes');
// -> 'true'

validate('string', 1337);
// -> 'false'

validate(/d(b+)d/g, 'cdbbdbsbz');
// -> 'true'
````

## Supported types
- `array`
- `string`
- `number`
- `boolean`
{'fraction_non_alphanumeric': 0.2190082644628099, 'fraction_numerical': 0.005509641873278237, 'mean_word_length': 5.0041322314049586, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 8, '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': '2158313', 'n_tokens_mistral': 573, 'n_tokens_neox': 544, 'n_words': 88}