Skip to content

Instantly share code, notes, and snippets.

@x1B
Created April 14, 2011 09:30
Show Gist options
  • Save x1B/919193 to your computer and use it in GitHub Desktop.
Save x1B/919193 to your computer and use it in GitHub Desktop.
Add file:// links to Node.JS stack traces.
#! /bin/sh
sed -E -e 's_[(]?(/[^:]*/([^ ]*)):([0-9]+):([0-9]*)[)]?_[\2:\3:\4] file://\1_g'
@x1B
Copy link
Author

x1B commented Apr 14, 2011

Adds URLs to Node.JS stacktraces to open file with default App (on Mac OS X). Does not allow to jump to line/column.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment