Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@bem/fs-scheme
Advanced tools
var BemCell = require('@bem/cell'),
BemEntityName = require('@bem/entity-name');
var atom = new BemCell(
{
entity: new BemEntityName({
block: 'b1',
elem: 'e1',
mod: {name: 'm1', val: 'v1'}
}),
tech: 'js'
}
);
var options = {
naming: 'origin'
};
var bemFs = require('bem-fs-scheme')('nested')
bemFs.path(atom, options); // b1/__e1/_m1/b1__e1_m1_v1.js
elemDirDelim
and modDirDelim
has meaning only for nested
scheme.
Parameter | Type | Description | Default |
---|---|---|---|
options | object , string | '"origin"' | |
options.naming | object , string | Defines delimeters and wordPattern check [@bem/naming] | '"origin"' |
options.elemDirDelim | string | Separates element's directory | "__" |
options.modDirDelim | string | Separates mod's directory | "_" |
Options could be one of these strings:
check ./lib/presets
Code and documentation © 2015 YANDEX LLC. Code released under the Mozilla Public License 2.0.
[@bem/naming] : https://github.com/bem-sdk/bem-naming#bemnaming-elem-mod-wordpattern-
FAQs
BEM file system schemes
The npm package @bem/fs-scheme receives a total of 40 weekly downloads. As such, @bem/fs-scheme popularity was classified as not popular.
We found that @bem/fs-scheme demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.