1.4.0 • Published 6 years ago
local-webstrap v1.4.0
local-webstrap
Simple Node.js local web strapper allowing to run node.js code in different context (host, Azure Functions)
Installation
npm install --save local-webstrap
Usage
// Define the web handler.
function handler(req, res)
{
//...
}
// Map the handler to an HTTP method.
require("local-webstrap")("localhost", handler, "GET");