v8.0.0
Breaking
- Require Node.js 12 cde5c79
- Removed deprecated
url
option - The
app
option now accepts an object instead of a string/array:
await open('https://sindresorhus.com', {
- app: 'firefox'
+ app: {name: 'firefox'}
});
await open('https://sindresorhus.com', {
- app: ['chrome', '--incognito']
+ app: {name: 'google chrome', arguments: '--incognito'}
});
Improvements
- Add
open.apps
constants, which lets easily open Chrome and Firefox without cross-platform issues