Socket
Book a DemoInstallSign in
Socket

jstate

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

jstate

Very friendly Flux implementation

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

jState

Build Status NPM Version NPM Downloads Coveralls Package Quality Closed Issues Dependencies License  GitHub Stars

jState is a very friendly Flux implementation. Nowadays there are many libraries that do this implementation and do it with a great success, each characterized by certain characteristics, emphasis certain parameters and has a strong link to other libraries. jState primarily emphasizes complexity, this means that it has a very short and focused API, it is super easy to integrate with all the newest FE libraries and it takes almost no time to get started with.

Installation

$ npm i -S jstate
$ yarn add jstate

Quick start

<script src="./node_modules/jstate/dist/jstate.min.js"></script>
<script src="https://cdn.rawgit.com/rannn505/jstate/master/dist/jstate.min.js"></script>
// open console (F12)
const logger = next => action => {
  next(action);
  // $._ is shorthand to jstate.state
  console.log($._);
}
$.register(logger);
// all of jState API is accessible via $ or jstate prefixes
jstate.setState({a:1});
$.setState({a:2, b:3});

API Reference

:memo: API reference
I've created a convenient and readable page, so you can enjoy the experience of learning and begin to use the library quickly and easily.

Examples

License

MIT © Ran Cohen

Keywords

jstate

FAQs

Package last updated on 11 Oct 2017

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