lessdep

figure out (LESS) CSS dependencies recursively, asynchronously.

npm install lessdep
2 downloads in the last week
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.

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.
npm loves you