0.0.3 • Published 9 years ago
nethelpers v0.0.3
nethelpers
This is a small library of HTTP helpers that I use for my own projects. It's not a replacement for things like request, etc.. It's intended to make things like HTTP methods a bit easier to use by removing some of the boilerplate logic you usually have to write to make things work.
For example, enumerating methods allows you to use a switch statement like this:
var methods = require('nethelpers/methods');
var myMethod = 'post';
switch methods.fromStr(myMethod) {
case methods.options:
// do something here
...
case methods.post:
// do something here
}