Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env node
- function trace(base) {
- return function() {
- console.log('called at:', new Error().stack.split('\n')[2].trim());
- return base.apply(this, arguments);
- };
- }
- var path = require('path');
- path.exists = trace(path.exists);
- path.existsSync = trace(path.existsSync);
Add Comment
Please, Sign In to add comment