express-camelcase-response-keys

1.0.1 • Public • Published

Express camelCase response keys

Tiny Express middleware to convert JSON-response data into camelcase notation.

Response before middleware:

{ "some_field": "blabla" }

Response after middleware:

{ "someField": "blablabla" }

Installation

npm install express-camelcase-response-keys

Usage

See camelcase-keys for configuration options.

app.use(require('express-camelcase-response-keys')(/* options here */));

Example

const camelcaseMiddleware = require('express-camelcase-response-keys');

app.use(camelcaseMiddleware({
    deep: true
}));

Package Sidebar

Install

npm i express-camelcase-response-keys

Weekly Downloads

9

Version

1.0.1

License

MIT

Unpacked Size

2.41 kB

Total Files

4

Last publish

Collaborators

  • stianlik