# rescope-spells

> Work in progress collection of chainable stores decorators for rescope

Latest version **16.1.0** (published 2019-12-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install rescope-spells
pnpm add rescope-spells
yarn add rescope-spells
bun add rescope-spells
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 16.1.0 |
| Published | 2019-12-28 |
| First published | 2018-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 37.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Nathan Braun |
| Maintainers | caipilabs |

## Links

- npm: https://www.npmjs.com/package/rescope-spells
- Repository: https://github.com/rscopes/rescope-spells
- Homepage: https://github.com/rscopes/rescope-spells#readme
- Issues: https://github.com/rscopes/rescope-spells/issues
- npm.io page: https://npm.io/package/rescope-spells

## Dependencies (3)

- [is](https://npm.io/package/is.md) ^3.2.1
- [rescope](https://npm.io/package/rescope.md) ^4.6.1
- [shortid](https://npm.io/package/shortid.md) ^2.2.8

## Recent versions

- 16.1.0 (latest) — 2019-12-28
- 16.0.6 — 2019-09-16
- 16.0.5 — 2019-08-05
- 16.0.4 — 2019-06-18
- 16.0.3 — 2019-04-21
- 16.0.2 — 2019-04-02
- 4.1.6 — 2019-03-05
- 4.1.3 — 2019-01-16
- 4.1.2 — 2019-01-16
- 4.1.1 — 2019-01-16
- 4.1.0 — 2019-01-12
- 4.0.3 — 2019-01-12
- 4.0.2 — 2019-01-12
- 4.0.1 — 2019-01-12
- 4.0.0 — 2018-10-17
- … 10 more at https://npm.io/package/rescope-spells/versions

## README

# rescope-spells

[![Build Status](https://travis-ci.org/rScopes/rescope-spells.svg?branch=master)](https://travis-ci.org/rScopes/rescope-spells)
[![NPM Version](https://badge.fury.io/js/rescope-spells.svg?style=flat)](https://npmjs.org/package/rescope-spells)
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](#)

## What ?

Work in progress collection of chainable stores decorators for [rescope](https://github.com/rScopes/ReScope)

## Examples ?

```jsx
new Scope(
    {

        @asStore // cast the "myData" object to a Store class named "myData"
        myData : {
         @asRef // bind some scope refs to (myData).state.url
         url    : "appConfig.myMainDataUrl",
         @asRef
         params : "appState"

        }

        @asStore
        appConfig : {
            myMainDataUrl : "http://some.where/{%appState.lang}.json
        }

        @asStore
        appState : {
            lang          : 'fr',
            currentFilter : {
                name : "Par.*"
            }
            someAction(){
               return {
                   some:"mutations"
               }
            }
        }
    },
    {
        // cfg ...
    }
)
```

[![HitCount](http://hits.dwyl.io/caipilabs/Caipilabs/rescope-spells.svg)](http://hits.dwyl.io/caipilabs/Caipilabs/rescope-spells)
<span class="badge-paypal"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VWKR3TWQ2U2AC" title="Donate to this project using Paypal"><img src="https://img.shields.io/badge/paypal-donate-yellow.svg" alt="PayPal donate button" /></a></span>

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