Skip to content

Finds files that satisfy the provided bemdecl

License

Notifications You must be signed in to change notification settings

bempack/bemdecl-to-fs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
});