Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

bemjson2bl

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bemjson2bl

Grab blocks from bemjson

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

Bemjson2bl

Аналогично html2bl вытаскивает список блоков из bemjson, с учетом уровней переопределения.

var params = {
    levels: ['common.blocks', 'project.blocks'],
    bemjsonSrc: 'index.bemjson'
};
var getFileNames = require('bemjson2bl').getFileNames(params);

getFileNames.then(function(result) {
    // folders list
    result.dirs

    // css files list
    result.css
})

Keywords

bem

FAQs

Package last updated on 15 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts