Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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>