Nybble Processing Mainframe
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

@bem/sdk.naming.file.stringify

0.1.9 • Public • Published

naming.file.stringify

BEM file system schemes.

Usage

const BemFile = require('@bem/sdk.file');
 
const file = new BemFile({
    cell: {
        block: 'b1',
        elem: 'e1',
        mod: {name: 'm1', val: 'v1'},
        tech: 'js',
        layer: 'desktop'
    },
    level: 'node_modules/bem-core'
});
 
const stringify = require('@bem/sdk.naming.file.stringify')(require('@bem/sdk.naming.presets/origin'));
 
stringify(file); // node_modules/bem-core/desktop.blocks/b1/__e1/_m1/b1__e1_m1_v1.js

License

Code and documentation © 2017 YANDEX LLC. Code released under the Mozilla Public License 2.0.

install

npm i @bem/sdk.naming.file.stringify

Downloadsweekly downloads

80

version

0.1.9

license

MPL-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar