menubar.js

0.0.1 • Public • Published

Menubar.js

Create a Menubar app with Electron

Installation

npm i menubar.js

Setup

const menubar = require('menubar.js');

menubar({ /* Config, passed to BrowserWindow */ }, './path/to/tray/icon', 'mode').then(menubar_app => {
// menubar_app.app - Electron app instance
// menubar_app.tray - Electron Tray instance
// menubar_app.window - Electron Window instance
// menubar_app.positioner - Electron Positioner instance
})

Set mode to "detach" to detach the window from the tray icon.

Other info

Get more in-depth help on Discord, or ask a question on GitHub

Report feedback & bugs here

Like our work? Support us on Patreon

Package Sidebar

Install

npm i menubar.js

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

2.65 kB

Total Files

4

Last publish

Collaborators

  • coolstone
  • systemsoftware