higgytools
A collection of node simplifications for web serving and requesting (along with some system commands implemented).
NOTE: If you use C#, check out https://github.com/haydenhigg/Vitesse for the fully-developed version of this package, and a nodejs version of Vitesse is coming soon.
node node_modules/higgytools/test.js
To quickly test the package after installation, type this command from your package directory: utility
Miscellaneous helper functions
parse URL parameters to JSON by providing the result of url.parse(path)
requests
Simplified GET and POST requests
GET
POST
serving
Each of these returns a server. A simple HTTP server, a server to serve one file quickly, a powerful static file server, or a server with direct control over the responses with routes.
serve
serve a file
serve all static files
The optional first argument is routes, which will serve as an override to the static response. See the serveRoutes function for more detail on routes. You can specify how many folders deep to start the file search by setting the module's parentDirectories property (default is 0). You can specify an anchor file by setting the module's anchor property.
dynamically serve manually specified routes
Routes is an object of
{ return body: body options: options;}
or
}
where route is a string path, request is a URL object, the body of the return object is the body of the response, and the options are the options to write to the head of the response.
system commands
If you have these tools installed this can provide just a simple node interface with them.
arp
nmap
listIPs
Manually tries to find a hostname for every ip from xxx.xxx.xx.min to xxx.xxx.xx.max. The beginning is found from the router's IP address.