0.2.0 • Published 1 year ago
read-browser-cookies v0.2.0
read-browser-cookies
Node.js version of
--cookies-from-browser
from yt-dlp
Install
$ pnpm add read-browser-cookies
Alternative
I'm surprised yt-dlp's usage, and create this pkg, then I found these existing alternative pkgs
Status
- macOS + Chromium Based browsers
- macOS + safari
- macOS + firefox
- windows + Chromium Based browsers
- windows + firefox
- Linux + Chromium Based browsers
- Linux + firefox
current only macOS + Chromium based browsers are supported.
chromium based browser names
- chrome
- chromium
- edge
- brave
- opera
- vivaldi
API
import { readBrowserCookies } from 'read-browser-cookies'
// read all cookies
readBrowserCookies('chrome').then((cookiesArray) => {
//
})
// read all cookies for specific site
// using sqlite `like %site%`
readBrowserCookies('chrome', { site: 'youtube.com' }).then((cookiesArray) => {
//
})
Changelog
License
the MIT License http://magicdawn.mit-license.org