open-with-result
v8.4.0
Published
Open stuff like URLs, files, executables. Cross-platform.
Downloads
6
Maintainers
Readme
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