Skip to content

I got tired of bloated request modules when all I wanted was for http.get to return me a body object. Well wait no longer! Here is a super barebones module which does exactly that!

Notifications You must be signed in to change notification settings

nmcclay/reqbody

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

reqbody

This is really early, this is a super minimal wrapper for http.get which returns a complete body.

Don't expect this to get a lot more sophisticated than it currently is.

##usage

Basically this module is a wrapper around http.get from node core.

var reqbody = require('reqbody');

var request = reqbody({
	path : '/path',
}, function(res) {
	var body = res.body;
})

Thats about it for now.

About

I got tired of bloated request modules when all I wanted was for http.get to return me a body object. Well wait no longer! Here is a super barebones module which does exactly that!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published