npm.io
1.0.0 • Published 6 years ago

gcf-body-parser

Licence
ISC
Version
1.0.0
Deps
0
Size
2 kB
Vulns
0
Weekly
0
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))
}