From 08d209349cd845c6c07d10ff509dab07b5bda63d Mon Sep 17 00:00:00 2001 From: Randall Schmidt Date: Thu, 10 Jun 2021 12:52:24 -0400 Subject: [PATCH] update readme --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 48c5dea..b267922 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,15 @@ This module aims to expose the same API as `node-fetch` does for the most common Load the module and specify the directory to cache respones in. +If this syntax looks at all foreign to you, you can do this: + +```js +const createNodeFetchCache = require('node-fetch-cache'); +const fetch = createNodeFetchCache('./path/to/cache/dir'); +``` + +Same thing. + ### async fetch(resource [, init]) Same arguments as [node-fetch](https://www.npmjs.com/package/node-fetch).