# ember-lodash-computed

> Ember computed macros with lodash in mind

Latest version **0.0.8** (published 2016-04-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-lodash-computed
pnpm add ember-lodash-computed
yarn add ember-lodash-computed
bun add ember-lodash-computed
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2016-04-13 |
| First published | 2015-12-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | rjhilgefort |
| Maintainers | rjhilgefort |
| Keywords | ember-addon, lodash, computed, macros |

## Links

- npm: https://www.npmjs.com/package/ember-lodash-computed
- Repository: https://github.com/rjhilgefort/ember-lodash-computed
- Homepage: https://github.com/rjhilgefort/ember-lodash-computed#readme
- Issues: https://github.com/rjhilgefort/ember-lodash-computed/issues
- npm.io page: https://npm.io/package/ember-lodash-computed

## Dependencies (1)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^5.1.6

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.0.8 (latest) — 2016-04-13
- 0.0.7 — 2015-12-21
- 0.0.6 — 2015-12-18
- 0.0.5 — 2015-12-18
- 0.0.4 — 2015-12-18
- 0.0.3 — 2015-12-13
- 0.0.2 — 2015-12-11
- 0.0.1 — 2015-12-08

## README

# Ember-lodash-computed [![npm version](https://badge.fury.io/js/ember-lodash-computed.svg)](https://badge.fury.io/js/ember-lodash-computed) [![Build Status](https://travis-ci.org/rjhilgefort/ember-lodash-computed.svg?branch=master)](https://travis-ci.org/rjhilgefort/ember-lodash-computed) [![Ember Observer Score](https://emberobserver.com/badges/ember-lodash-computed.svg)](https://emberobserver.com/addons/ember-lodash-computed)

#### Computed macros for lodash `is` methods. As well as blueprint for generating computed properties in your own ember project.

## Installation

```shell
# ember-cli > 0.2.3
ember install ember-lodash-computed
# ember-cli <= 0.2.3
ember install:addon ember-lodash-computed
```

## Usage

```javascript
import Ember from 'ember';
import { isString } from 'ember-lodash-computed';

export default Ember.Object.create({
  foo: "foo",
  isFooString: isString('foo') // true
});
```

## Implemented Computed Methods

- `includes`
- `isArguments`
- `isArray`
- `isBoolean`
- `isDate`
- `isElement`
- `isEmpty`
- `isFunction`
- `isNaN`
- `isNative`
- `isNull`
- `isNumber`
- `isObject`
- `isPlainObject`
- `isRegExp`
- `isString`
- `isTypedArray`
- `isUndefined`

## Blueprints

There are also blueprints added as part of this repo. You can generate custom computed methods by doing the following. The command will generate the custom computed.

```shell
ember generate computed foo
```

After implementing the computed generated at `app/computeds/foo.js`, you can then use it in your project like so:

```javascript
import Ember from 'ember';
import { foo } from 'app/computeds/foo';

export default Ember.Object.create({
  bar: "bar",
  barComputed: foo('bar')
});
```

---
_Source: https://npm.io/package/ember-lodash-computed · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
