Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Results from JS API #25

Open
kevinsawicki opened this issue Jun 20, 2013 · 3 comments
Open

Results from JS API #25

kevinsawicki opened this issue Jun 20, 2013 · 3 comments

Comments

@kevinsawicki
Copy link

If you are calling replace as a function it would be cool to get information back about what was replaced as it runs or after it completes.

Perhaps return a results object or take an options callback that reports back file and occurrence information as it runs.

@harthur
Copy link
Owner

harthur commented Jul 5, 2013

+1

@gastonelhordoy
Copy link

+1
For this to be feasible, the function should receive a callback as second parameter. This would not only make the function properly asynchronous (stick to standards), but would allow to:

  • send errors back instead of throwing them which is dangerous in an async environment (no try/catch mechanism from the calling function).
  • send the response back under an asynchrounous scenario.

@jaumard
Copy link

jaumard commented Feb 24, 2016

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants