How to use the minimist.file function in minimist

To help you get started, we’ve selected a few minimist 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 cypress-io / cypress / packages / server / lib / background / child / index.js View on Github external
// if we are running in electron
// we must hack around busted timers
if (process.versions.electron) {
  require('../../timers/parent').fix()
}

require('graceful-fs').gracefulify(require('fs'))
require('@packages/coffee/register')
require && require.extensions && delete require.extensions['.litcoffee']
require && require.extensions && delete require.extensions['.coffee.md']

const ipc = require('../util').wrapIpc(process)
const backgroundFile = require('minimist')(process.argv.slice(2)).file

require('./run_background')(process, ipc, backgroundFile)
github cypress-io / cypress / packages / server / lib / plugins / child / index.js View on Github external
require('graceful-fs').gracefulify(require('fs'))
require('@packages/coffee/register')
require && require.extensions && delete require.extensions['.litcoffee']
require && require.extensions && delete require.extensions['.coffee.md']

const ipc = require('../util').wrapIpc(process)
const pluginsFile = require('minimist')(process.argv.slice(2)).file

require('./run_plugins')(ipc, pluginsFile)