1.0.0 • Published 4 years ago
gcf-body-parser v1.0.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))
}
1.0.0
4 years ago