We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parse
Ref: #6
Methods:
parse(data: {version: ?string, blocks: ?object[], decl: ?object[]): BEMEntityParts[]
The method should determine the format of the file content.
BEMDECL 1.0
exports.blocks = [ { name: 'block' } ];
or
exports.version = '1.0'; exports.decl = [ { name: 'block' } ];
BEMDECL 2.0
exports.version = '2.0'; exports.decl = [ { block: 'block' } ];
BEMDECL next
exports.version = 'next'; exports.decl = [ { block: 'block' } ];
The method should translate any format to normalized BEMDECL 2.0.
var parse = require('bem-decl').parse; // bemdecl-1.0.js // exports.blocks = [ // { name: 'block' } // ]; parse(fs.readFileSync('bemdecl-1.0.js')); // [{ block: 'block' }]
The text was updated successfully, but these errors were encountered:
Prbbly parse isn't the best name for this method. Any other suggestions?
Sorry, something went wrong.
feat(parse): add method to parse files
6faa31a
Fixes #33
a6f95f0
3adb84d
qfox
No branches or pull requests
Ref: #6
Methods:
parse(data: {version: ?string, blocks: ?object[], decl: ?object[]): BEMEntityParts[]
The method should determine the format of the file content.
BEMDECL 1.0
or
BEMDECL 2.0
BEMDECL next
The method should translate any format to normalized BEMDECL 2.0.
The text was updated successfully, but these errors were encountered: