Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bem-object

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bem-object

Data abstraction for gulp-bem

  • 2.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

bem-object

NPM version Build Status Coverage Status Dependency Status

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 bem

BEM 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 to assign

License

MIT (c) 2014 Vsevolod Strukchinsky

Keywords

FAQs

Package last updated on 09 Apr 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc