Gathering detailed insights and metrics for ember-on-modifier-sugar
Gathering detailed insights and metrics for ember-on-modifier-sugar
Gathering detailed insights and metrics for ember-on-modifier-sugar
Gathering detailed insights and metrics for ember-on-modifier-sugar
npm install ember-on-modifier-sugar
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (85.86%)
HTML (14.14%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
5 Commits
2 Watchers
16 Branches
2 Contributors
Updated on Nov 29, 2019
Latest Version
0.0.2
Package Id
ember-on-modifier-sugar@0.0.2
Unpacked Size
8.82 kB
Size
3.38 kB
File Count
6
NPM Version
6.9.2
Node Version
10.16.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
24
This addon provides syntax sugar for on
and fn
modifiers usage.
1<button (click)={{this.onClick "Hello"}} > 2 ClickMe 3</button>
to
1<button {{on "click" (fn this.onClick "Hello")}} > 2 ClickMe 3</button>
also, string angular-like notation supported:
1<button (click)="this.onClick(1, null, true, false, undefined, 'str')"> 2 ClickMe 3</button>
will be transformed to
1<button {{on "click" (fn this.onClick 1 null true false undefined "str") }}> 2 ClickMe 3</button>
Simple expressions, like
1<button (click)="this.onClick()"> 2 ClickMe 3</button>
will be transformed to
1<button {{on "click" this.onClick}}> 2 ClickMe 3</button>
This is Not
JavaScript! This code will not work:
1<button 2 (click)="this.onClick();" 3 (click)="this.onClick(...attrs)" 4 (click)="this.onClick(...attrs, 3 + 2)" 5 (click)="this.onClick(...attrs, this.hello())" 6 (click)="this.onClick(...attrs, (helper (anover helper)))" 7> 8 ClickMe 9</button> 10
ember install ember-on-modifier-sugar
Just install it and use simple event bindings!
See the Contributing guide for details.
This project is licensed under the MIT License.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/5 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
79 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More