Skip to content

Mike-Dax/node-detective-less

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

detective-less npm npm

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.

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

About

Find the dependencies of a less file

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%