figure out (LESS) CSS dependencies recursively, asynchronously.

npm install lessdep
8 downloads in the last month

lessdep(fname, opts, callback)

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


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


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