Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fluxury-general-store

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluxury-general-store

A general purpose flux store for use with React.js

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

general-store

general-store is a general purpose state management library based on Facebook's Flux architecture.

It is built on top of fluxury and functionfoundry.

Similar to flux it does not specify data fetching. This solution may be used with REST, SOAP or any other HTTP based protocol that your application demands. You may use XMLHTTPRequest, jQuery, fetch or any other mechanism that can asynchronously deliver data to a browser.

Getting Started

Option A) Install from npm.

$ npm install --save fluxury-general-store

Require into your project.

var createStore = require('fluxury-general-store') // Node.js / browserify / webpack
// or
import createStore from 'fluxury-general-store' // ES6 syntax

Option B) Install from dist folder.

<html>
  <head>
    <script src="/path/to/general-store.js"><script>
    ...

Basic Usage

var store = createStore()
store.set({ key: 'value' })
store.get('key')

store.set({ investments: [{ name: 'FundA' }, { name: 'FundB' }]})
store.setFilter({
  table: 'investments',
  field: 'name',
  op: 'eq',
  value: 'FundA'}
)
store.get('investments') // => [{ name: 'FundA' }]

Keywords

FAQs

Package last updated on 23 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc