npm open 8.0.0

latest releases: 10.1.0, 10.0.4, 10.0.3...
3 years ago

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

v7.4.2...v8.0.0

Don't miss a new open release

NewReleases is sending notifications on new releases.