active-observer

0.0.1 • Public • Published

Active Observer 🔍

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);

Readme

Keywords

Package Sidebar

Install

npm i active-observer

Weekly Downloads

1

Version

0.0.1

License

ISC

Unpacked Size

60.7 kB

Total Files

37

Last publish

Collaborators

  • blad