# create-saga-core

> convenience initializer for redux-saga apps

Latest version **0.1.3** (published 2019-03-07) · Beerware license · 0 weekly downloads

## Install

```sh
npm install create-saga-core
pnpm add create-saga-core
yarn add create-saga-core
bun add create-saga-core
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2019-03-07 |
| First published | 2018-08-28 |
| Weekly downloads | 0 |
| License | Beerware |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jared Mathews |
| Maintainers | refectjam |
| Keywords | javascript, redux, redux-saga, saga |

## Links

- npm: https://www.npmjs.com/package/create-saga-core
- Repository: https://github.com/refectjam/create-saga-core
- npm.io page: https://npm.io/package/create-saga-core

## Recent versions

- 0.1.3 (latest) — 2019-03-07
- 0.1.2 — 2018-12-15
- 0.1.1 — 2018-08-28
- 0.1.0 — 2018-08-28

## README

# create-saga-core

- convenience initializer for [_**redux-saga**_](https://github.com/redux-saga/redux-saga) apps

## get started

#### install

```
yarn add redux redux-saga

yarn add create-saga-core
```

#### basic template

```js
import createSagaCore from 'create-saga-core'

createSagaCore({ initializer }).then(store => {
  /* insert code */
})

function* initializer() {
  /* insert code */
}
```

## api

- **_`createSagaCore({ reducer, reducers, sagas, initializer })`_**

  - **_`reducer`_** **-** _Reducer_
  - **_`reducers`_** **-** _{Reducer}_
  - **_`sagas`_** **-** _{Saga}_
  - **_`initializer`_** **-** _Saga_

  **notes:**

  - all arguments are optional, though it doesn't make since to provide nothing
  - provide either **_`reducer`_** or **_`reducers`_** to participate in state management
  - resolves with store after **_`initializer`_** completes
  - **_`sagas`_** will be promisified and attached at **_`<Store>.api`_**

## caveats

- only works in the context of _ES modules_
- may need to run through transpiler depending on target environment

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