# cerebral-computed

> Package to let cerebral view packages expose computed feature

Latest version **0.1.1** (published 2016-06-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install cerebral-computed
pnpm add cerebral-computed
yarn add cerebral-computed
bun add cerebral-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.1.1 |
| Published | 2016-06-08 |
| First published | 2016-06-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | christianalfoni |

## Links

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

## Dependencies (1)

- [lodash.get](https://npm.io/package/lodash.get.md) ^4.0.0

## Recent versions

- 0.1.1 (latest) — 2016-06-08
- 0.1.0 — 2016-06-08

## README

# cerebral-computed
A package allowing computed state dependencies in views

```js
import computed from 'cerebral-computed';

export default computed({
  foo: 'some.state.path',
  bar: 'some.other.path'
}, state => {
  return state.foo + state.bar
})
```

This computed can be used in Cerebral view layers:

```js
import myComputed from './myComputed.js'
import {Decorator as Cerebral} from 'cerebral-view-react'

@Cerebral({
  someProp: myComputed
})
```

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