alfred-evernote-workflow
Version:
Evernote workflow for Alfred 4
11 lines (7 loc) • 312 B
JavaScript
const { getEnv, getEnvAsObject } = require('./utils')
const fs = require('fs')
const envObj = getEnvAsObject('./.env')
// eslint-disable-next-line no-unused-vars
const [execPath, key, value] = process.argv.slice(1)
envObj[key] = value
fs.writeFileSync('.env', '\ufeff' + getEnv(envObj), { encoding: 'utf8' })