<commit_before>
# CSURF

CSRF middleware for connect/express/node.

It currently has the same API as [connect-csrf](http://www.senchalabs.org/connect/csrf.html), except it is now in its own repository.
<commit_msg>Add build status badge + example usage<commit_after># CSURF [![Build Status](https://travis-ci.org/expressjs/csurf.svg?branch=master)](https://travis-ci.org/expressjs/csurf)

CSRF middleware for connect/express/node.

## Example

```js
var csrf = require('csurf');

app.use(csrf());
```

It currently has the same API as [connect-csrf](http://www.senchalabs.org/connect/csrf.html), except it is now in its own repository.

{'fraction_non_alphanumeric': 0.1430817610062893, 'fraction_numerical': 0.0, 'mean_word_length': 4.898148148148148, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2507823', 'n_tokens_mistral': 221, 'n_tokens_neox': 217, 'n_words': 57}