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

@drdgvhbh/electron-splashscreen

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@drdgvhbh/electron-splashscreen

electron-splashscreen Nice splashscreens for your ele

  • 0.1.7
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

electron-splashscreen

electron-splashscreen
Nice splashscreens for your electronjs app

Build Status Coverage Status Version Language License

Install

Yarn

yarn add electron-splashscreen

NPM

npm i electron-splashscreen

Example

import { initSplashScreen, Office } from 'electron-splashscreen';
import isDev from 'electron-is-dev';
import { resolve } from 'app-root-path';

app.on('ready', async () => {
  const mainWindow = new BrowserWindow({
    ...
  });

  const hideSplashscreen = initSplashScreen({
    mainWindow,
    icon: isDev ? resolve('assets/icon.ico') : undefined,
    url: Office,
    width: 500,
    height: 300,
    brand: 'My Brand',
    productName: 'My App',
    logo: resolve('assets/logo.svg'),
    website: 'www.my-brand.com',
    text: 'Initializing ...'
  });

  // send an ipcRenderer.send('ready') from your browser as soon as the app is ready
  ipcMain.on('ready', hideSplashscreen);

  mainWindow.once('ready-to-show', () => {
    // Electron-splash will automatically show the mainwindow as soon, but you can show it earlier in dev
    if (isDev) {
      mainWindow.show();
    }
  });
})

FAQs

Package last updated on 22 Mar 2020

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