cookie-store
A polyfill to allow use of the Cookie Store API in modern browsers that don't support it natively, including IE11. Also compatible with TypeScript.
Installation
npm install cookie-store
Basic Example
// import polyfill and declare types; // set a cookieawait cookieStore;// get a cookieconst foo = await cookieStore;console; // { name: 'forgive', value: 'me' } // set another cookieawait cookieStore; // get multiple cookiesconst cookies = await cookieStore;console; // [{ name: 'forgive', value: 'me' }, { name: 'forget', value: 'it' }] // delete a cookieawait cookieStore;