Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
caching layer for node-detective
JavaScript
Branch: master
Failed to load latest commit information.
example better desc, package.json
test multiple files in the cache test now
.travis.yml drop 0.4, add 0.8 on travis
README.markdown using travis
index.js existsSync blah
package.json existsSync blah

README.markdown

deputy

This module is a caching layer around node-detective.

build status

example

cache.js

var deputy = require('deputy');
var detective = deputy(process.env.HOME + '/.config/deputy.json');

var deps = detective.find('require("a"); require("b")');
console.dir(deps);

output:

$ node cache.js 
{ strings: [ 'a', 'b' ], expressions: [] }
$ cat ~/.config/deputy.json 
{"55952d490bd28e3e256f0b036ced834d":{"strings":["a","b"],"expressions":[]}}

methods

var deputy = require('deputy')

var detective = deputy(cacheFile)

Return a new detective object using cacheFile for caching.

install

With npm do:

npm install deputy

license

MIT/X11

Something went wrong with that request. Please try again.