0.2.3 • Published 11 years ago

findex v0.2.3

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

findex

build status

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

var findex = require('findex');

function functionToFind() {
  console.log('as you can see I am on lines 4 - 6 in indexNFind.js');
}

functionToFind();

findex(function (err, index) {
  if (err) return console.error(err);
  console.log(index.find(functionToFind));
});
[ { file: '/Users/thlorenz/dev/js/projects/findex/example/indexNfind.js',
    start: { line: 4, column: 0 },
    end: { line: 6, column: 1 },
    lines: 2,
    range: [ 43, 142 ] } ]

Status

Alpha - most functionality is there, none tested yet.

Also API docs are coming.

Installation

npm install findex

API

License

MIT

0.2.3

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago