http-tasker
is a very small and lightweight tasking service library utilizing the http
module. It's primary use is to provide a shortcut for mapping URL paths to functions. Useful for API building, scheduling scripts, etc...
Installation
npm install http-tasker
Example
Use of the library is really simple:
var httpTasker = ; httpTasker; // Returns an instance of http.Server
Testing
The above example is configured as a npmjs
testing script. Running
npm test
will start the HTTP server. By default the test is setup to run on 127.0.0.1:1337
, so to view the example task navigate to http://127.0.0.1:1337/test while the server is running.