https://github.com/nolim1t/decode-post-body-params
Decoding post body params
https://github.com/nolim1t/decode-post-body-params
encoding functions libraries string web
Last synced: about 1 month ago
JSON representation
Decoding post body params
- Host: GitHub
- URL: https://github.com/nolim1t/decode-post-body-params
- Owner: nolim1t
- Created: 2017-05-11T10:29:42.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-11T10:34:31.000Z (about 9 years ago)
- Last Synced: 2025-09-29T11:18:22.489Z (9 months ago)
- Topics: encoding, functions, libraries, string, web
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Decode Post Body Params
[](https://badge.fury.io/js/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
```bash
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](http://blockr.io/address/info/14qd36n1viYAWzajZgaTQq4tPUZcEUtfcz) / LTC: [LSGfxUoJSC3qYsTC6DwyvKvYfDwTVXrcE2](http://ltc.blockr.io/address/info/LSGfxUoJSC3qYsTC6DwyvKvYfDwTVXrcE2) / [Dollars](https://donate.nolim1t.co))
## Usage:
### Example: Grab a post param called 'address'
event.body being the post body received from AWS Lambda.
```javascript
var decodebodyparams = require('decode-post-body-params');
var data_address = decodebodyparams('address', "http://localhost/?" + event.body);
```