sindresorhus/opn




Do you want to work on this issue?
You can request for a bounty in order to promote it!
Ability to pass args directly to open #183
jennifer-shehane posted onGitHub
We want the ability to pass our own flags to open, specifically the -R
flag if we detect it is on darwin
os. https://github.com/sindresorhus/open/issues/175
Can you allow passing along flags to open as part of the options?
const opn = require('opn')
if (os.platform() === 'darwin') {
return opn('../foo', { args: '-R'})
}
return opn('../foo')