gcf-body-parser
v1.0.0
Published
Parses request body in Google Cloud Functions
Downloads
1
Readme
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))
}