1.0.0 • Published 5 years ago

post-parser v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

post-parser

post-parser is a parser that parser post request with only few lines. post-parser only supports parsing requests in the mime type application/x-www-form-urlencoded We are working to support parsing requests in text/plain In order to parse a post request use this code:

var http = require("http")
http.createServer(function(req,res){
  if(req.method = "POST"){
    let parse = require("post-parser")
    parse(req,function(result,err){
      if (err) throw err;
      res.write(result)
      res.end()
    })
  }
}).listen(8080)
1.0.0

5 years ago

0.0.9

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.3

10 years ago