canjs / can-stream-kefir

Stream values into and out of computes
https://canjs.com/doc/can-stream-kefir.html
MIT License
3 stars 2 forks source link

Exporting toStream as default function as well as toStream and toCompute methods #34

Closed Sinjhin closed 7 years ago

Sinjhin commented 7 years ago

Made can-stream-kefir export the toStream function so you can do:

var canStream = require("can-stream-kefir");

canStream(map, "prop") //-> stream

to get a stream.

var canStream = require("can-stream-kefir");
canStream.toStream();
// and
canStream.toCompute();

still work.

Closes #33