0.0.1 • Published 5 years ago

active-observer v0.0.1

Weekly downloads
6
License
ISC
Repository
github
Last release
5 years ago

Active Observer :mag:

The Caching HTTP Proxy.

Usage

Example Bootstrap Script:

import { start } from "active-observer";

const handleReady = (options) => {
  console.log(`Server Ready...listening on port: ${options.port}`);
};

const options = {
  serverBaseUrl: "https://swapi.co",  // Destination address for our requests.
  cacheDir: "/temp/_cache/", // Location where cache files will be written.
  port: 9000 // Port our proxy will listen on.
};

// Start the proxy server for swapi.co:
start(handleReady, options);