Skip to content

nolim1t/decode-post-body-params

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Decode Post Body Params

npm version

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.

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);

Releases

No releases published

Packages

No packages published