<commit_before>
# Valida
Valida - A lightweight sanitizer and validator library for Node.js.

This document describes how Valida library works and which features it offers. Each section of this document includes usage examples. You can find additional examples at [examples](https://github.com/esnunes/valida/tree/master/examples) folder.

## Simple example
```javascript
var schema = {<commit_msg>Add badge for ci + npm<commit_after># Valida
[![Build Status](https://travis-ci.org/esnunes/valida.svg?branch=master)](https://travis-ci.org/esnunes/valida)
[![npm version](https://badge.fury.io/js/valida.svg)](http://badge.fury.io/js/valida)

Valida - A lightweight sanitizer and validator
library for Node.js.

This document describes how Valida library works and which features it offers. Each section of this document includes usage examples. You can find additional examples at [examples](https://github.com/esnunes/valida/tree/master/examples) folder.

## Simple example
```javascript
var schema = {
{'fraction_non_alphanumeric': 0.1106679960119641, 'fraction_numerical': 0.0, 'mean_word_length': 5.121951219512195, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, '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': '7598680', 'n_tokens_mistral': 298, 'n_tokens_neox': 284, 'n_words': 96}