Socket
Socket
Sign inDemoInstall

nwjs-osx-menu

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nwjs-osx-menu

Creates default menu for your nw.js program on Mac OS X, thereby enabling functionality like copy-and-paste


Version published
Maintainers
1
Install size
6.01 kB
Created

Readme

Source

nwjs-osx-menu

npm version Bower version

Creates a default menu for your nw.js program on Mac OS X, thereby enabling functionality like Copy-and-Paste.

Background

Lack of ⌘C(copy) and ⌘V(paste) was making development difficult on nw.js. Originally, I had saved the code as a gist/snippet. But even this required copy and paste. I was getting tired of typing in this boilerplate every time, I ran my app. So I tried to find a better solution.

I checked to see if anyone has created module to address this problem. It appeared that no one had. I also checked, to see if code for this would make more sense in nw.js itself. It did not. It also probably will not.

So I went ahead and put together this solution on a Saturday. Enjoy!

##Usage

This is available as a nmp module. Simply install with:

npm install nwjs-osx-menu

Call the module function passing in the window object:

require('nwjs-osx-menu')(window);

On Mac OS X, this call should add an Edit and a Window menu to the application menubar. On other platforms, this call should not modify the application state.

Keywords

FAQs

Last updated on 06 May 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc