Package Exports
- @pavlovcik/proxy-handler
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@pavlovcik/proxy-handler) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
proxy-handler
Typings and interface definitions for a manager of a list of proxies.
Example Usage:
const handler = new ProxyHandler({
location: path.join(process.cwd(), `test`, `successes.json`), // Filepath allows it to persist.
// Can also use variable ( i.e. an array [] ) which can only stay in RAM, and of course, is temporary.
persist: true // Write to disk
});
console.log(handler);
console.log(handler.storage.proxies); // Shows the list of proxies in the handler
console.log(handler.storage.proxies.flattened()); // Handy flatten function to return only the proxies.