{"id":17061566,"url":"https://github.com/paxa/nw-appmenu","last_synced_at":"2026-05-16T11:32:32.120Z","repository":{"id":31189225,"uuid":"34749845","full_name":"Paxa/nw-appmenu","owner":"Paxa","description":"nwjs helper to work with application menu","archived":false,"fork":false,"pushed_at":"2015-07-14T18:50:42.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T00:37:46.898Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Paxa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-28T18:59:17.000Z","updated_at":"2015-05-01T18:53:51.000Z","dependencies_parsed_at":"2022-09-08T21:42:45.927Z","dependency_job_id":null,"html_url":"https://github.com/Paxa/nw-appmenu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paxa%2Fnw-appmenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paxa%2Fnw-appmenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paxa%2Fnw-appmenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paxa%2Fnw-appmenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Paxa","download_url":"https://codeload.github.com/Paxa/nw-appmenu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245074378,"owners_count":20556748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T10:47:30.762Z","updated_at":"2025-10-04T22:14:10.799Z","avatar_url":"https://github.com/Paxa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nw-appmenu\n\nHelper to work with application menu in nwjs (node-webkit)\n\n#### Install:\n\n```\nnpm install nw-appmenu\n```\n\n#### Example:\n\n```js\nvar AppMenu = require('nw-appmenu');\n\n// we will add Zoom In, Zoom Out, Inspector, Reload, Help items to window menu\nvar menu = {\n  'Window': {\n    'separator': 'separator',\n    'Zoom in': {\n      click: function () {\n        gui.Window.get().zoomLevel += 0.5;\n      },\n      key: '+'\n    },\n    'Zoom out': {\n      click: function () {\n        gui.Window.get().zoomLevel -= 0.5;\n      },\n      key: '-'\n    },\n    'Zoom to noraml': {\n      click: function () {\n        gui.Window.get().zoomLevel = 0;\n      },\n      key: '0'\n    },\n    'separator2': 'separator',\n    Inspector: {\n      click: function () {\n        var win = gui.Window.get();\n        if (win.isDevToolsOpen()) {\n          win.closeDevTools();\n        } else {\n          win.showDevTools();\n        }\n      },\n      key: 'i'\n    },\n    Reload: {\n      click: function () {\n        gui.Window.get().reloadDev();\n      },\n      key: 'r'\n    },\n    Help: function() {\n      window.alert(\"help window\");\n    }\n  }\n};\n\nAppMenu.createAndExtend(menu);\n\n```\n\n![screen shot 2015-04-29 at 1 55 56](https://cloud.githubusercontent.com/assets/26019/7377889/6eb537e4-ee13-11e4-9127-d687afa0e968.png)\n\nI extrac this code from [Postbird](https://github.com/Paxa/postbird), please see `example_app` folder for more features and options.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaxa%2Fnw-appmenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaxa%2Fnw-appmenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaxa%2Fnw-appmenu/lists"}