Comparing version 0.3.5 to 0.3.8
{ | ||
"name": "horpyna", | ||
"version": "0.3.5", | ||
"version": "0.3.8", | ||
"description": "promised modules flow control core library", | ||
@@ -35,2 +35,3 @@ "main": "index.js", | ||
"babel-preset-stage-0": "^6.5.0", | ||
"babel-register": "^6.9.0", | ||
"chai": "^3.5.0", | ||
@@ -37,0 +38,0 @@ "chai-as-promised": "^5.3.0", |
# HORPYNA | ||
[](https://travis-ci.org/uhlryk/horpyna) | ||
[](https://www.npmjs.com/package/horpyna) | ||
[](https://www.npmjs.com/package/horpyna) | ||
[](https://www.npmjs.com/package/horpyna) | ||
Create basic component: | ||
## SHORT DESCRIPTION | ||
This module is for better organizing multiple async processes. | ||
If you have: | ||
import Horpyna from "horpyna"; | ||
var component = new Horpyna.Component(); | ||
* big amount async functions | ||
* some of them run only if some conditions meet | ||
* some of them run multiple times | ||
* you are bored of long promise chains with inner conditional sub chains | ||
* you want to reuse some parts of promise chains | ||
Then this library is for your project! | ||
Run component: | ||
It helps with modularity, reusability and testify of your code. | ||
## HOW DOES IT WORKS | ||
component.run(); | ||
You split your code into smaller independent parts. Each of them you wrap into Horpyna Component. You customize | ||
each component. And then it is funniest part. You can join components together, then built new components from | ||
joined components. You can decorate components with other components to modify it functionality. | ||
For example you can have component which consist of 5 other components. You can reuse it, and remove some inner components | ||
and replace it with other components. | ||
It is also easy to test. Each component have input and output. In test you set different input data and test | ||
output values. | ||
## INSTALLATION | ||
npm install horpyna | ||
## USAGE | ||
*in ES6 syntax but you can use it with ES5 too* | ||
[todo] | ||
## LICENSE | ||
MIT | ||
Sorry, the diff of this file is not supported yet
33
50
84363
27