Adds support for cookies in Electron. Cookies are persisted through localStorage.
renderer environment doesn't come with built in support for a
document.cookie API. Thus, if you want to use Google Analytics or another client-side analytics library, they won't work because they can't set cookies.
By using this package, you can drop client-side analytics code into your app and it will work splendidly.
npm install electron-cookies
In your app's
renderer code, just require this package:
Original code is written in
src/index.coffee, with tests at
spec/electron_cookies_spec.coffee. Write code in coffeescript, and run
grunt to compile coffeescript on the fly.