@usama8800/freedesktop-notification-reader
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Freedesktop Notification Reader

Reads Freedesktop notifications from DBUS

Usage

import { getNotification } from '@usama8800/freedesktop-notification-reader';

// From Application
const chromeNoti = await getNotification({from: 'Chrome'});

// With header
const instaNoti = await getNotification({head: 'Instagram'});

// Regex match on body
const messageNoti = await getNotification({head: 'Instagram', body: /inta_username: /i});

Readme

Keywords

Package Sidebar

Install

npm i @usama8800/freedesktop-notification-reader

Weekly Downloads

4

Version

2.0.1

License

ISC

Unpacked Size

19.7 kB

Total Files

8

Last publish

Collaborators

  • usama8800