gcf-body-parser

1.0.0 • Public • Published
npm install gcf-body-parser

Usage

let requestBody = require('gcf-body-parser')

// Cloud function
exports.cloudFunction = async(req, res) => {
    
    // Parse the request body
    let body = requestBody(req)

    // Print the output to the console
    console.log(JSON.stringify(body))
}

Readme

Keywords

none

Package Sidebar

Install

npm i gcf-body-parser

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

1.95 kB

Total Files

4

Last publish

Collaborators

  • oglover