Skip to content

maliut/open-with-result

 
 

Repository files navigation

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

About

Open stuff like URLs, files, executables. Cross-platform.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.1%
  • TypeScript 4.9%