Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
Use another preset as default via 'presets' option
node v10.24.1
version:
1.0.0
endpoint
share
tweet
const myNamingOptions = { preset: 'two-dashes', // Redefine default preset. If not specified 'origin' preset will be used as default. delims: { mod: { val: '=' } } }; const myNaming = require('@bem/sdk.naming.presets/create')(myNamingOptions);
Parse a BEM entity name to test created preset.
const parse = require('@bem/sdk.naming.entity.parse')(myNaming); parse('my-block--my-modifier=some-value');
Loading…
no comments
sign in
to comment