decode-post-body-params
v1.0.1
Published
Decoding post body params
Downloads
2
Readme
Decode Post Body Params
About
I created this library because I felt the need for parsing post body params through AWS Lambda without having to write a complex parser (although that is still possible).
That way I can use a framework such as the Serverless framework to deploy without worrying about logging into the console.
Therefore speeding up development
Installing
npm i decode-post-body-params
Contributing
All contributions are welcome and appreciated. Open Source is a meritocracy who doesn't care who you are.
- Issues
- Pull Requests
- Donations (BTC: 14qd36n1viYAWzajZgaTQq4tPUZcEUtfcz / LTC: LSGfxUoJSC3qYsTC6DwyvKvYfDwTVXrcE2 / Dollars)
Usage:
Example: Grab a post param called 'address'
event.body being the post body received from AWS Lambda.
var decodebodyparams = require('decode-post-body-params');
var data_address = decodebodyparams('address', "http://localhost/?" + event.body);