sg-type-normalization

0.0.5 • Public • Published

sg-type-normalization

express에서 req로 부터 들어온 데이터를 정규화하는 미들웨어 입니다.

Installation

npm install --save sg-type-normalization

Example

const typeNormalization = require('sg-type-normalization')
const app = require('express')()
app.use(typeNormalization())
(req, res, next) => {
    console.log(req.data) // before normalize
    req.normalizeAll()
    console.log(req.data) // after normalize
}

Package Sidebar

Install

npm i sg-type-normalization

Weekly Downloads

1

Version

0.0.5

License

ISC

Unpacked Size

4.5 kB

Total Files

5

Last publish

Collaborators

  • hwaranglee
  • sngsng
  • piorio0919
  • kspark