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

about-window-edit

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

about-window-edit

'EDITED, use origional called about-window. About App' window for Electron application

  • 1.6.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

'About This App' Window for Electron Apps

npm version

This package provides 'About This App' window for Electron applications.

  • Create 'About This App' window from given parameters
    • Icon path
    • Copy right
    • App name and Versions
    • Description
  • Gather package information from package.json
  • Automatically detect package.json
  • Adjust window size to its contents automatically
  • CSS customizability

You can install this module via npm.

$ npm install about-window

Only one function is exported as default. Please see TypeScript type definition.

export default function openAboutWindow(info: {
    icon_path: string;
    package_json_dir?: string;
    bug_report_url?: string;
    copyright?: string;
    homepage?: string;
    description?: string;
    license?: string;
    css_path?: string;
    adjust_window_size?: boolean;
    win_options?: BrowserWindowOptions;
}): BrowserWindow

Only icon_path property is required, others are optional. I recommend to specify as below to extract information from package.json as much as possible. Path to package.json is also automatically detected if possible.

openAboutWindow({
    icon_path: 'path/to/icon.png'
});

You can check example app to know how to use this package.

$ git clone https://github.com/rhysd/about-window.git
$ cd about-window/example
$ npm install
$ npm start

Parameter's properties of openAboutWindow()

NameDescriptionType
icon_pathPath to icon file of the application. Requiredstring
package_json_dirPath to directory which contains package.json. If not specified, it will try to detect a path to package.json. If also failed, it gives up and show less information in 'About This App' window. Optionalstring
bug_report_urlURL to bug report page. If not specified, 'bugs' entry in package.json is used. Optionalstring
copyrightCopyright notice shown in window. If not specified, it is replaced with license description generated by 'license' entry of package.json. Optionalstring
homepageURL of application's web page. If not specified, 'homepage' entry of package.json is used instead. Optionalstring
descriptionDescription of the application. If not specified, 'description' entry of package.json is used instead. Optionalstring
licenseLicense of the application. If not specified, 'license' entry of package.json is used instead. This property is used when copyright is not specified. Optionalstring
win_optionsOptions of 'About This App' window. It is merged into default options. OptionalBrowserWindow options object
css_pathPath to user-defined CSS file. It will be inserted to DOM of the window. Optionalstring
adjust_window_sizeAdjust the window size to its content not to show scroll bar. Optionalboolean
open_devtoolsFor debug purpose, Chrome DevTools will start when the window is opened Optionalboolean
use_inner_htmlIf true, set the value with .innerHTML on copyright, license and description Default is false Optionalboolean

Note: If you set use_inner_html to true, please ensure that they don't contain any untrusted external input in order to avoid XSS. Be careful.

Screen Shots

Linux

Linux screenshot

OS X

OS X screenshot

Windows

Windows screenshot

License

MIT License.

Keywords

FAQs

Package last updated on 06 Jun 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc