node package manager

lessdep

figure out (LESS) CSS dependencies recursively, asynchronously.

lessdep(fname, opts, callback)

Reads the given file, parses it with the LESS CSS parser and repeats this for all dependencies.

Arguments:

  • fname: the file to be parsed
  • opts: optional. options object.
  • callback(err, deparr): callback function, passed the array of dependencies.

opts:

  • readFile(fname, cb): used instead of fs.readFile if given.