scnt

Utility program/library for counting source code lines

sourcetrace

Generate a "stacktrace" into JavaScript source code, finding the lines that start blocks and statements containing a given source pattern or line.