var extractor = require('less-imports-extractor');
extractor.getImportsByPath('./main.less', ['./global_includes', './another/'])
.then(function(result) {
console.log(result);
})
.catch(function(e) {
console.log("Err:", e);
})
.done()
{
tree : {
content: 'file content',
imports: [ [Object], [Object], [Object] ],
absolutePath: '/absolute/path.less'
},
flat: [
{
absolutePath: '/absolute/path.less',
content: 'less file content'
},
{
importFile : 'path.less',
importOptions : [],
absolutePath: '/absolute/path.less',
content: 'less file content'
}
]
}