mirror of
				https://github.com/fooflington/selfdefined.git
				synced 2025-10-30 21:58:32 +00:00 
			
		
		
		
	detective-less  
 
Find the dependencies of a less file
npm install --save detective-less
This is a fork of a package by mrjoelkemp given a lack of a less detective, it is the counterpart to detective, detective-amd, detective-sass, detective-scss and detective-es6.
- The AST is generated using the gonzales-pe parser.
Usage
var detective = require('detective-less');
var content = fs.readFileSync('styles.less', 'utf8');
// list of imported file names (ex: 'foo.less', 'foo', etc)
var dependencies = detective(content);
License
MIT
