pwnall / node-open

open a file or uri with the users preferred application (browser, editor, etc), cross platform
MIT License
560 stars 57 forks source link

Using promises with open #29

Open brycepj opened 10 years ago

brycepj commented 10 years ago

Forgive me -- I'm a little new to Node and promises, but I'm trying to figure out if it's possible to hook this up to a promise.

As in, open.then(callback).

Unlike other fs operations, open doesn't seem to support a callback with error reporting.

Is there any way to signal that an file has been successfully opened, so I can run more processes?

fritx commented 7 years ago

+1

2-am-zzz commented 7 years ago

+1