jar-got
Wrapper for got to persisting cookies
Install
yarn add jar-got
Usage
Basic
const jarGot = const got = ; async { await // First, stores the response set-cookie. await // Second, request with the stored cookies.}
Save and restore
// serializeconst saved = got; // deserializeconst restoredGot = jarGot
Using existing cookie jar.
const got1 = const got2 = // got1.jar === got2.jar
License
MIT