chrome-cookies-secure icon indicating copy to clipboard operation
chrome-cookies-secure copied to clipboard

Support for custom configs and allowing Chromium/Blink browsers

Open rbndelrio opened this issue 4 years ago • 0 comments

This tool is extremely useful but my ideal use case would let me import cookies from Brave. Naturally, the sprawl of Chromium-based browsers is pretty wide so an ideal path for this might just be reorganizing the api to allow for custom paths like:

const chromeish = require('chrome-cookies-secure');

const options = {
  format: 'curl',
  profile: 'Default',
  path: '/Library/Application Support/BraveSoftware/Brave-Browser',
  // Or override home path with fullPath
}
chromeish.getCookies('https://foo.com/', options, console.log);

An API structure like this would be ideal and it should be easy to maintain backwards compatibility. I may fork this project in a few weeks for my use case. Thanks!

rbndelrio avatar Feb 09 '21 19:02 rbndelrio