read-browser-cookies
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

read-browser-cookies

Node.js version of --cookies-from-browser from yt-dlp

Build Status Coverage Status npm version npm downloads npm license

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

  • [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

CHANGELOG.md

License

the MIT License http://magicdawn.mit-license.org

Package Sidebar

Install

npm i read-browser-cookies

Weekly Downloads

14

Version

0.2.0

License

MIT

Unpacked Size

26.4 kB

Total Files

16

Last publish

Collaborators

  • magicdawn