How to use electron-apps - 1 common examples

To help you get started, we’ve selected a few electron-apps examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github colorjs / pick-a-good-color / demo.js View on Github external
const yo = require('yo-yo')
const path = require('path')
const pick = require('.')

const palettes = require('electron-apps')
  .slice(26)
  .map(app => {
    const {iconColors, slug, icon128} = app
    return {
      colors: iconColors,
      icon: path.join(__dirname, `node_modules/electron-apps/apps/${slug}/${icon128}`),
      name: app.name,
      goodColorOnBlack: pick(iconColors, {background: 'black'}),
      goodColorOnWhite: pick(iconColors, {background: 'white'})
    }
  })

function render (palettes) {
  return yo`<content>

    <ul class="palettes heading"></ul></content>

electron-apps

A collection of apps built on Electron

MIT
Latest version published 2 years ago

Package Health Score

68 / 100
Full package analysis

Popular electron-apps functions