fetch-with-log
Creates a function which logs request and response from fetch into passed in function
Installation
npm install fetch-with-log
Usage example
;// OR// const fetchWithLog = require('fetch-with-log').default; const logFunc = { // do logging magic here // args are this shape: // { // url, // url requested // options, // request options passed // res, // response object // time; // time taken to make fetch request // } console;}; const fetch = ; { const result = await ;};