Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/floatdrop/bem-object
Data abstraction for gulp-bem
https://github.com/floatdrop/bem-object
Last synced: 22 days ago
JSON representation
Data abstraction for gulp-bem
- Host: GitHub
- URL: https://github.com/floatdrop/bem-object
- Owner: floatdrop
- Created: 2014-08-13T05:07:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-09T15:31:43.000Z (over 9 years ago)
- Last Synced: 2024-10-26T21:11:33.393Z (2 months ago)
- Language: JavaScript
- Size: 761 KB
- Stars: 1
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# bem-object
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url]
## Properties
Each object will contain next properties:
* `block` - name of the block
* `elem` - name of the element
* `modName` - name of the modificator
* `modVal` - value of the modificator
* `level` - level of definition of current block (full path to level directory)## Getters
#### bemObject.id
###### alias bemBEM identifier, composed from `block`, `elem`, `mod` and `val`.
## API
### object(props)
Constructs BEM Object.
`props` can be:
* String - specifies level and properties: `some/level/block__elem_mod_val`
* Object - contains [properties](#properties) to assign## License
MIT (c) 2014 Vsevolod Strukchinsky
[npm-url]: https://npmjs.org/package/bem-object
[npm-image]: http://img.shields.io/npm/v/bem-object.svg?style=flat[travis-url]: http://travis-ci.org/floatdrop/bem-object
[travis-image]: http://img.shields.io/travis/floatdrop/bem-object.svg?branch=master&style=flat[depstat-url]: http://david-dm.org/floatdrop/bem-object
[depstat-image]: http://img.shields.io/david/floatdrop/bem-object.svg?style=flat[coveralls-url]: https://coveralls.io/r/floatdrop/bem-object
[coveralls-image]: http://img.shields.io/coveralls/floatdrop/bem-object.svg?style=flat