observ-readable
Create a read-only observable interface
Install
$ npm install --save observ-readable
Usage
var Readable = var Struct = var Observ = var observable = var readable = //=> foo readable//=> TypeError: readable.set is not a function var struct = struct//=> bar //=> {foo: 'bar'} struct//=> TypeError...
API
Readable(observable)
-> function
observable
Required
Type: function
/ any
An observable to wrap. You can also pass in a normal value and a new observable will be created.
Struct(data)
-> function
data
Required
Type: object
Data to pass to observ-struct.
License
MIT © Ben Drucker