UNPKG

findex

Version:

Indexes locations of functions inside a project by the md5 hash of the function string to find them later.

26 lines (22 loc) 489 B
'use strict'; // test that module exports assignment works var go = module.exports = function () { function foo (a, b, c) { function bar () { console.log('logged from inside bar'); } return bar; } // this one is poorly formatted on purpose function foobar (a, cc) { // testing one liner var hex = function () { return 'hex'; }; return hex; } return { foo : foo , bar : foo() , foobar : foobar , hex : foobar() }; };