Socket
Socket
Sign inDemoInstall

ember-macaroni-decorators

Package Overview
Dependencies
186
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ember-macaroni-decorators

Ember computed decorators for `ember-macaroni`


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
18.8 MB
Created
Weekly downloads
 

Readme

Source

ember-macaroni-decorators

npm version Build Status Ember Observer Score

Decorators for computed properties in ember-macaroni. This project version should stay in sync with ember-macaroni so the interface is consistent and expected.

Installation

# ember-cli > 0.2.3
ember install ember-macaroni
ember install ember-macaroni-decorators
# ember-cli <= 0.2.3
ember install:addon ember-macaroni
ember install:addon ember-macaroni-decorators

Usage

import Ember from 'ember';
import { gt } from 'ember-macaroni-decorators';

export default Ember.Object.create({
  first: 5,
  second: 2,
  @gt('first', 'second') isFirstGreaterThanSecond, // true
});

Implemented Computed Methods

  • Collection
    • filterContains
    • filterKey
    • findKey
    • find
    • reduceKey
    • reduce
    • rejectKey
    • reject
    • withoutKey
    • without
  • Truth
    • equalKey
    • ternaryKey
    • ternary
    • gteKey
    • gtKey
    • lteKey
    • ltKey
  • General
    • getPropertiesByKeys
    • join
    • joinWith

Keywords

FAQs

Last updated on 14 Apr 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc