Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electron-create-menu

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-create-menu - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

10

index.js

@@ -118,9 +118,11 @@ const { app, Menu } = require("electron");

const electronMenu = (callback = passThrough, i18nFunc = passThrough) => {
Menu.setApplicationMenu(
Menu.buildFromTemplate(
filterMenu(callback(createTemplate(i18nFunc), SEPARATOR))
)
const createdMenu = Menu.buildFromTemplate(
filterMenu(callback(createTemplate(i18nFunc), SEPARATOR))
);
Menu.setApplicationMenu(createdMenu);
return createdMenu;
};
module.exports = electronMenu;

2

package.json
{
"name": "electron-create-menu",
"version": "1.0.0",
"version": "1.1.0",
"description": "provides a default menu for your electron applications, with convenience functions for multiplatform use and i18n.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,2 +0,2 @@

# Electron-create-menu
# Electron-create-menu [![npm](https://img.shields.io/npm/v/electron-create-menu.svg)](https://www.npmjs.com/package/electron-create-menu) [![npm-downloads](https://img.shields.io/npm/dm/electron-create-menu.svg)](https://www.npmjs.com/package/electron-create-menu) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FKilian%2Felectron-create-menu.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FKilian%2Felectron-create-menu?ref=badge_shield)

@@ -26,2 +26,6 @@ provides a default menu for your electron applications, with convenience functions for multiplatform use and i18n.

*Note:* This API has to be called after the `ready` event of `app` module.
Menu always returns the menu object that `Menu.buildFromTemplate` creates, so you can access [instance methods](https://electronjs.org/docs/api/menu#instance-methods) on it.
### Optional arguments

@@ -28,0 +32,0 @@ Menu has two optional functions you can pass it

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc