open-with-result
TypeScript icon, indicating that this package has built-in type declarations

8.4.0 • Public • Published

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

Package Sidebar

Install

npm i open-with-result

Weekly Downloads

1

Version

8.4.0

License

MIT

Unpacked Size

40.8 kB

Total Files

6

Last publish

Collaborators

  • maliut