nodech / error-stack-filter

Error Stack Filter
MIT License
0 stars 0 forks source link

Would it be possible to indicate lines were removed? #1

Open machineghost opened 6 years ago

machineghost commented 6 years ago

First off thanks for making this great library: it's (almost) exactly what I was looking for.

However, I have a fear that months from now I will be looking at a stack trace, want to see a line from a node_module, forget that I used this library months before, and then waste a lot of time figuring out what happened.

Therefore, I was wondering if it would be possible to add some sort of option so that instead of completely removing lines from the trace you could instead replace all of them with a single line like:

         at *removed by error-stack-filter* (node_modules/error-stack-filter.index.js:107:25)

Using this option would make the library almost as useful (the resulting stack traces would only be one line longer than normal) and would make things more explicit/less "magical".

nodech commented 6 years ago

hey, thanks for you interest.

I don't maintain nor have used this lib since I created it (maybe used in couple of dependency heavy project, where callback hells created huge error stack traces).

You can fork or copy and modify it however it suits you.