New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ember-truth-helpers

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-truth-helpers

Ember HTMLBars Helpers for `if` & `unless`: `not`, `and`, `or`, `eq`, `is-array`

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
103K
decreased by-7.96%
Maintainers
1
Weekly downloads
 
Created
Source

Ember Truth Helpers for HTMLBars

Helpers for HTMLBars {{#if}} & {{#unless}}:

eq

{{#if (eq 1 2)}} 1 == 2 {{/if}}
{{#unless (eq 1 2)}} 1 != 2 {{/unless}}

not

{{#if (not hasCrayons)}} I don't have crayons {{/if}}
{{#if (not hasCrayons hasPaper)}} I don't have crayons or paper {{/if}}

and

{{#if (and hasCrayons hasPaper)}} I have crayons and paper {{/if}}

or

{{#if (or hasCrayons hasPaper)}} I have something {{/if}}

is-array

{{#if (is-array siblings)}} 
    {{#each siblings as |sibling|}} 
        My sibling: {{sibling}} 
    {{/each}} 
{{/if}}

in combination

{{#if (and (not model.isLoading) model.isError)}}
		There was an error loading the model
{{/if}}

stand alone

{{and itsCold myJumper}} 
(returns myJumper if itsCold is truthy, otherwise returns itsCold ('false'))

Development

  • git clone https://github.com/jmurphyau/ember-truth-helpers.git
  • npm install
  • bower install
  • ember server
  • Visit your app at http://localhost:4200.

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

Keywords

FAQs

Package last updated on 08 Jan 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