UNPKG

findex

Version:

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

13 lines (9 loc) 265 B
var findex = require('..'); function functionToFind() { console.log('as you can see I am on lines 3 - 5 in indexNFind.js'); } functionToFind(); findex(function (err, index) { if (err) return console.error(err); console.log(index.find(functionToFind)); });