read-browser-cookies
v0.2.0
Published
Node.js version of `--cookies-from-browser` from yt-dlp
Downloads
14
Maintainers
Readme
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
- https://github.com/bertrandom/chrome-cookies-secure
- https://github.com/phoqe/havelock
Status
- [x] 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