8.4.0 • Published 1 year ago

open-with-result v8.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

forked from sindresorhus/open. Throw an error when open fails

for example:

try {
  await open('http://xx', { app: { name: open.apps.edge } })
} catch (e) {
  console.error(e)
}

will throw:

Unable to find application named 'microsoft edge'

if edge does not exist