1.0.0 • Published 4 years ago

gcf-body-parser v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago
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))
}