README
Pipeflow is a free and open source platform to build the next generation of web and mobile apps
Developer Preview
Pipeflow is in Developer Preview and is not ready for production purpose yet.
Pipeflow Stream
Pipeflow stream enables developer to create immutable object.
Installation
To install Pipeflow-stream from node package manager (npm) repository use following command
$ npm install pipeflow-stream
Example
The following example demonstrates how to define an immutable http response using Pipeflow-stream.
var Stream = require('pipeflow-stream');
var reader = function (cb, end) {
cb(this.content());
end(this);
};
var Response = Stream({ name: 'Response', read: reader, properties: ['content', 'statusCode', 'mimeType'] });
And this is how to instantiate Response stream.
var res = Response({ content: 'hello world!', statusCode: 200, mimeType: 'text/plain' });