<commit_before># express-restful-response
Very simple way to response restfuly for express.

## Install

```js
npm install express-restful-response
```

## Test

```js
npm test
```

## Usage

```js
var express = require('express')
var app = express()
var response = require('express-restful-response').response

app.get('/', function (req, res) {
    var output = {};
    
    ...
    
    response(res, output, {
        status_code: 200,
        status_msg: 'Success!'
    })
})
```

## Options

```js
response(res, output, {
    status_code: 200,
    status_msg: undefined,
    jsonp: false
})<commit_msg>change readme<commit_after># express-restful-response
Very simple way to response restfuly for express.

## Install

```js
npm install express-restful-response
```

## Test

```js
npm test
```

## Usage

```js
var express = require('express')
var app = express()
var response = require('express-restful-response')

app.use(response.restfulEnd)

app.get('/', function (req, res) {
    var output = {};
    
    ...
    
    res.restfulEnd(output, {
        status_code: 200,
        status_msg: 'Success!'
    })
})
```

## Options

```js
res.restfulEnd(output, {
    status_code: 200,
    status_msg: undefined,
    jsonp: false
})
{'fraction_non_alphanumeric': 0.15738498789346247, 'fraction_numerical': 0.009685230024213076, 'mean_word_length': 3.175084175084175, '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': '7070897', 'n_tokens_mistral': 440, 'n_tokens_neox': 407, 'n_words': 104}