bemdecl-to-fs
v0.0.4
Published
bemdecl-to-fs =============
Downloads
3
Readme
bemdecl-to-fs
Finds files that satisfy the provided bemdecl.
Usage
Promise API:
const bemdeclToFs = require('bemdecl-to-fs');
const bemdecl = [{block: 'a'}];
const levels = ['blocks'];
const techs = ['css', 'js'];
bemdeclToFs(bemdecl, levels, techs)
.then(files => console.log(files));
Common API:
const bemdeclToFs = require('bemdecl-to-fs');
const bemdecl = [{block: 'a'}];
const levels = ['blocks'];
const techs = ['css', 'js'];
bemdeclToFs(bemdecl, levels, techs, (er, files) => {
if (er) {
throw er;
}
console.log(files);
});