
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
ember-class-modifier
Advanced tools
This class modifier made for declarative class management for DOM elements.
Why?
<div
class="
ui flat item
{{if this.loading ' loading'}}
{{if this.hasErrors ' error'}}">
</div>
To
<div {{class 'ui flat item'
loading=this.loading
error=this.hasErrors
}}></div>
Currently, modifiers don't work in FastBoot. To prevent "Blinking" you can add critical classes as standard class attribute. After modifier initialization it node.classList will be replaced.
<div
class="ui flat item"
{{class 'ui flat item'
loading=this.loading
error=this.hasErrors
}}>
</div>
ember install ember-class-modifier
<div {{class 'my-name'}}></div>
{{!-- Rendered AS: --}}
<div class="my-name"></div>
<div {{class 'my-name' 'gold-color'}}></div>
{{!-- Rendered AS: --}}
<div class="my-name gold-color"></div>
<div {{class my-name=false}}></div>
{{!-- Rendered AS: --}}
<div></div>
<div {{class my-name=true}}></div>
{{!-- Rendered AS: --}}
<div class="my-name"></div>
<div {{class 'red-dot' my-name=true}}></div>
{{!-- Rendered AS: --}}
<div class="red-dot my-name"></div>
<div {{class (array 'class-one' 'class-two')}}></div>
{{!-- Rendered AS: --}}
<div class="class-one class-two"></div>
See the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
Ember: Declarative class management modifier
The npm package ember-class-modifier receives a total of 4 weekly downloads. As such, ember-class-modifier popularity was classified as not popular.
We found that ember-class-modifier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.