Jaguard / time-require

Displays the execution time for Node.js modules loading by hooking require() calls
MIT License
253 stars 20 forks source link

Display full paths #7

Open moll opened 9 years ago

moll commented 9 years ago

Hey,

Giving this thing a spin. Is it possible to not truncate the file paths? On a 80 character terminal it's pretty much unreadable. With everything looking close to node_modul...index.js, it's impossible to make sense.

Cheers

cyparu commented 8 years ago

How about using an alias (like $) for the very verbose node_modules to shorten down the path ? If an alias will be used instead of (ex:): _/node_modules/karma/node_modules/minimatch/nodemodules/brace-expansion we will have: /$/karma/$/minimatch/$/brace-expansion ... definitely more readable.

moll commented 8 years ago

^ For the above, probably a different format would be better: karma > minimatch maybe. Reusing slashes to mean different things may confuse.

cyparu commented 8 years ago

For the above, probably a different format would be better: karma > minimatch maybe. Reusing slashes to mean different things may confuse.

Indeed this might be an even better idea (with ex: from above): /my/absolute/path > karma > minimatch > brace-expansion/src/mod.js and with the relative paths being even shorter: karma > minimatch > brace-expansion/src/mod.js.