xinquirer
Version:
Like Inquirer.js but for with dialog windows. node.js API and CLI to to ask user to enter data, dialogs on top of the current window.
14 lines (11 loc) • 396 B
JavaScript
// based on node_modules/electron/cli
var electron = require('../node_modules/electron/')
var path = require('path')
var proc = require('child_process')
var cliPath = path.join(__dirname, 'cli-main.js' )
var args = [cliPath].concat(process.argv.slice(2))
var child = proc.spawn(electron, args, {stdio: 'inherit'})
child.on('close', function (code) {
process.exit(code)
})