# nocms-stores

> Stores objects for NoCMS

Latest version **1.4.1** (published 2018-03-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install nocms-stores
pnpm add nocms-stores
yarn add nocms-stores
bun add nocms-stores
```

## 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 | 1.4.1 |
| Published | 2018-03-02 |
| First published | 2017-05-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 14.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | nocms |

## Links

- npm: https://www.npmjs.com/package/nocms-stores
- Repository: https://github.com/miles-no/nocms-stores
- Homepage: https://github.com/miles-no/nocms-stores#readme
- Issues: https://github.com/miles-no/nocms-stores/issues
- npm.io page: https://npm.io/package/nocms-stores

## Dependencies (1)

- [nocms-events](https://npm.io/package/nocms-events.md) ^1.2.0

## Recent versions

- 1.4.1 (latest) — 2018-03-02
- 1.4.0 — 2018-03-02
- 1.3.0 — 2017-11-24
- 1.2.3 — 2017-10-09
- 1.2.2 — 2017-10-09
- 1.2.1 — 2017-10-06
- 1.2.0 — 2017-10-06
- 1.1.1 — 2017-09-15
- 1.1.0 — 2017-09-15
- 1.0.0 — 2017-08-04
- 0.2.0 — 2017-08-04
- 0.1.2 — 2017-05-12

## README

# NoCMS Stores

Stores for NoCMS forms.

[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Dependency Status](https://david-dm.org/miles-no/nocms-stores.svg)](https://david-dm.org/miles-no/nocms-stores)
[![devDependencies](https://david-dm.org/miles-no/nocms-stores/dev-status.svg)](https://david-dm.org/miles-no/nocms-stores?type=dev)

## Installation

Install nocms-stores from NPM and include it in your own React build and minification process (using [Browserify](http://browserify.org), [Webpack](http://webpack.github.io/), etc).

```
npm install nocms-stores --save
```

## Usage

```
import stores from 'nocms-stores';

stores.createStore(props.store, props.initialState, this.handleStoreChange);
```

## API

### createStore(name, value, func)
Create a store with the given name and/or default value and/or callback function

### remove(name, func)
Delete store and optionally unsubscribe from the given function

### getStore(name)
Returns the store with the given name

### subscribe(name, func)
Listen to events on the given store by calling the function

### unsubscribe(name, func)
Stop listen to events on the given store

### update(name, obj)
Update store

## Commit message format and publishing

This repository is published using `semantic-release`, with the default [AngularJS Commit Message Conventions](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit).

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