{"_id":"rxjs-from-iterable","_rev":"169671","name":"rxjs-from-iterable","description":"rxjs helper functions for working with Map, Set, Generator, and other Iterables.","dist-tags":{"latest":"1.0.5"},"maintainers":[{"name":"jason-dent","email":"jason@streetsidesoftware.nl"}],"time":{"modified":"2021-06-03T11:50:08.000Z","created":"2017-01-30T16:14:02.984Z","1.0.5":"2017-01-30T19:25:36.223Z","1.0.4":"2017-01-30T17:08:07.541Z","1.0.3":"2017-01-30T16:23:18.355Z","1.0.2":"2017-01-30T16:22:45.747Z","1.0.1":"2017-01-30T16:16:15.479Z","1.0.0":"2017-01-30T16:14:02.984Z"},"users":{},"author":{"name":"Jason Dent"},"repository":{"type":"git","url":"git+https://github.com/Jason3S/rxjs-from-iterable.git"},"versions":{"1.0.5":{"name":"rxjs-from-iterable","version":"1.0.5","description":"rxjs helper functions for working with Map, Set, Generator, and other Iterables.","main":"dist/index.js","typings":"dist/index.d.ts","scripts":{"build":"tsc -p .","watch":"tsc --watch -p .","test":"NODE_ENV=test mocha --compilers ts:ts-node/register --recursive --bail \"src/**/*.test.ts\""},"repository":{"type":"git","url":"git+https://github.com/Jason3S/rxjs-from-iterable.git"},"keywords":["rxjs 5.0","Iterable","Iterator","rxjs"],"author":{"name":"Jason Dent"},"license":"MIT","bugs":{"url":"https://github.com/Jason3S/rxjs-from-iterable/issues"},"homepage":"https://github.com/Jason3S/rxjs-from-iterable#readme","devDependencies":{"@types/chai":"^3.4.34","@types/mocha":"^2.2.38","chai":"^3.5.0","mocha":"^3.2.0","rxjs":"^5.0.3","ts-node":"^2.0.0","tslint":"^4.4.2","typescript":"^2.1.5"},"dependencies":{},"peerDependencies":{"rxjs":"^5.0.3"},"gitHead":"90686cedc75a2a13f9a34edf9786c119b9e943f5","_id":"rxjs-from-iterable@1.0.5","_shasum":"ceab1570054b3bb05fd26d79881482c7db1b73d7","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"jason-dent","email":"jason@streetsidesoftware.nl"},"dist":{"shasum":"ceab1570054b3bb05fd26d79881482c7db1b73d7","size":3987,"noattachment":false,"key":"/rxjs-from-iterable/-/rxjs-from-iterable-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/rxjs-from-iterable/download/rxjs-from-iterable-1.0.5.tgz"},"maintainers":[{"name":"jason-dent","email":"jason@streetsidesoftware.nl"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/rxjs-from-iterable-1.0.5.tgz_1485804335666_0.383731851587072"},"directories":{},"publish_time":1485804336223,"_cnpm_publish_time":1485804336223,"_hasShrinkwrap":false},"1.0.4":{"name":"rxjs-from-iterable","version":"1.0.4","description":"rxjs helper functions for working with Map, Set, Generator, and other Iterables.","main":"dist/index.js","typings":"dist/index.d.ts","scripts":{"build":"tsc -p .","watch":"tsc --watch -p .","test":"NODE_ENV=test mocha --compilers ts:ts-node/register --recursive --bail \"src/**/*.test.ts\""},"repository":{"type":"git","url":"git+https://github.com/Jason3S/rxjs-from-iterable.git"},"keywords":["rxjs 5.0","Iterable","Iterator","rxjs"],"author":{"name":"Jason Dent"},"license":"MIT","bugs":{"url":"https://github.com/Jason3S/rxjs-from-iterable/issues"},"homepage":"https://github.com/Jason3S/rxjs-from-iterable#readme","devDependencies":{"@types/chai":"^3.4.34","@types/mocha":"^2.2.38","chai":"^3.5.0","mocha":"^3.2.0","rxjs":"^5.0.3","ts-node":"^2.0.0","tslint":"^4.4.2","typescript":"^2.1.5"},"dependencies":{},"peerDependencies":{"rxjs":"^5.0.3"},"gitHead":"a88c26d252efd9a045f726e1c42ccf52e920caa5","_id":"rxjs-from-iterable@1.0.4","_shasum":"e1c5ec420798cf3abe827978f298856275f54775","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"jason-dent","email":"jason@streetsidesoftware.nl"},"dist":{"shasum":"e1c5ec420798cf3abe827978f298856275f54775","size":3984,"noattachment":false,"key":"/rxjs-from-iterable/-/rxjs-from-iterable-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/rxjs-from-iterable/download/rxjs-from-iterable-1.0.4.tgz"},"maintainers":[{"name":"jason-dent","email":"jason@streetsidesoftware.nl"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rxjs-from-iterable-1.0.4.tgz_1485796085743_0.5467245748732239"},"directories":{},"publish_time":1485796087541,"_cnpm_publish_time":1485796087541,"_hasShrinkwrap":false},"1.0.3":{"name":"rxjs-from-iterable","version":"1.0.3","description":"rxjs helper functions for working with Map, Set, Generator, and other Iterables.","main":"dist/index.js","typings":"dist/index.d.ts","scripts":{"build":"tsc -p .","watch":"tsc --watch -p .","test":"NODE_ENV=test mocha --compilers ts:ts-node/register --recursive --bail \"src/**/*.test.ts\""},"repository":{"type":"git","url":"git+https://github.com/Jason3S/rxjs-from-iterable.git"},"keywords":["rxjs 5.0","Iterable","Iterator","rxjs"],"author":{"name":"Jason Dent"},"license":"MIT","bugs":{"url":"https://github.com/Jason3S/rxjs-from-iterable/issues"},"homepage":"https://github.com/Jason3S/rxjs-from-iterable#readme","devDependencies":{"@types/chai":"^3.4.34","@types/mocha":"^2.2.38","chai":"^3.5.0","mocha":"^3.2.0","rxjs":"^5.0.3","ts-node":"^2.0.0","tslint":"^4.4.2","typescript":"^2.1.5"},"dependencies":{},"peerDependencies":{"rxjs":"^5.0.3"},"gitHead":"ef2e6ddc53733c3d4121093543657a7ad81b2ffd","_id":"rxjs-from-iterable@1.0.3","_shasum":"359a4f04a3199e992a68c2e2fdc543fbeaf3d1e1","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"jason-dent","email":"jason@streetsidesoftware.nl"},"dist":{"shasum":"359a4f04a3199e992a68c2e2fdc543fbeaf3d1e1","size":3985,"noattachment":false,"key":"/rxjs-from-iterable/-/rxjs-from-iterable-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/rxjs-from-iterable/download/rxjs-from-iterable-1.0.3.tgz"},"maintainers":[{"name":"jason-dent","email":"jason@streetsidesoftware.nl"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/rxjs-from-iterable-1.0.3.tgz_1485793397674_0.883496860973537"},"directories":{},"publish_time":1485793398355,"_cnpm_publish_time":1485793398355,"_hasShrinkwrap":false},"1.0.2":{"name":"rxjs-from-iterable","version":"1.0.2","description":"rxjs helper functions for working with Map, Set, Generator, and other Iterables.","main":"dist/index.js","typings":"dist/index.d.ts","scripts":{"build":"tsc -p .","watch":"tsc --watch -p .","test":"NODE_ENV=test mocha --compilers ts:ts-node/register --recursive --bail \"src/**/*.test.ts\""},"repository":{"type":"git","url":"git+https://github.com/Jason3S/rxjs-from-iterable.git"},"keywords":["rxjs 5.0","Iterable","Iterator","rxjs"],"author":{"name":"Jason Dent"},"license":"MIT","bugs":{"url":"https://github.com/Jason3S/rxjs-from-iterable/issues"},"homepage":"https://github.com/Jason3S/rxjs-from-iterable#readme","devDependencies":{"@types/chai":"^3.4.34","@types/mocha":"^2.2.38","chai":"^3.5.0","mocha":"^3.2.0","rxjs":"^5.0.3","ts-node":"^2.0.0","tslint":"^4.4.2","typescript":"^2.1.5"},"dependencies":{},"peerDependencies":{"rxjs":"^5.0.3"},"gitHead":"ef2e6ddc53733c3d4121093543657a7ad81b2ffd","_id":"rxjs-from-iterable@1.0.2","_shasum":"1e082d081b9beec1381cf940e4144a1cc31d5876","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"jason-dent","email":"jason@streetsidesoftware.nl"},"dist":{"shasum":"1e082d081b9beec1381cf940e4144a1cc31d5876","size":3043,"noattachment":false,"key":"/rxjs-from-iterable/-/rxjs-from-iterable-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/rxjs-from-iterable/download/rxjs-from-iterable-1.0.2.tgz"},"maintainers":[{"name":"jason-dent","email":"jason@streetsidesoftware.nl"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/rxjs-from-iterable-1.0.2.tgz_1485793365022_0.015111057320609689"},"directories":{},"publish_time":1485793365747,"_cnpm_publish_time":1485793365747,"_hasShrinkwrap":false},"1.0.1":{"name":"rxjs-from-iterable","version":"1.0.1","description":"rxjs helper functions for working with Map, Set, Generator, and other Iterables.","main":"dist/index.js","scripts":{"build":"tsc -p .","watch":"tsc --watch -p .","test":"NODE_ENV=test mocha --compilers ts:ts-node/register --recursive --bail \"src/**/*.test.ts\""},"repository":{"type":"git","url":"git+https://github.com/Jason3S/rxjs-from-iterable.git"},"keywords":["rxjs 5.0","Iterable","Iterator","rxjs"],"author":{"name":"Jason Dent"},"license":"MIT","bugs":{"url":"https://github.com/Jason3S/rxjs-from-iterable/issues"},"homepage":"https://github.com/Jason3S/rxjs-from-iterable#readme","devDependencies":{"@types/chai":"^3.4.34","@types/mocha":"^2.2.38","chai":"^3.5.0","mocha":"^3.2.0","rxjs":"^5.0.3","ts-node":"^2.0.0","tslint":"^4.4.2","typescript":"^2.1.5"},"dependencies":{},"peerDependencies":{"rxjs":"^5.0.3"},"gitHead":"b0a6995c8c7b8cb86377a62cb88cf81628ad0452","_id":"rxjs-from-iterable@1.0.1","_shasum":"3491c08106fab28b54d949b57c319d52a0e23ccc","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"jason-dent","email":"jason@streetsidesoftware.nl"},"dist":{"shasum":"3491c08106fab28b54d949b57c319d52a0e23ccc","size":3978,"noattachment":false,"key":"/rxjs-from-iterable/-/rxjs-from-iterable-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rxjs-from-iterable/download/rxjs-from-iterable-1.0.1.tgz"},"maintainers":[{"name":"jason-dent","email":"jason@streetsidesoftware.nl"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/rxjs-from-iterable-1.0.1.tgz_1485792974744_0.9136362890712917"},"directories":{},"publish_time":1485792975479,"_cnpm_publish_time":1485792975479,"_hasShrinkwrap":false},"1.0.0":{"name":"rxjs-from-iterable","version":"1.0.0","description":"rxjs helper functions for working with Map, Set, Generator, and other Iterables.","main":"dist/index.js","scripts":{"build":"tsc -p .","watch":"tsc --watch -p .","test":"NODE_ENV=test mocha --compilers ts:ts-node/register --recursive --bail \"src/**/*.test.ts\""},"repository":{"type":"git","url":"git+https://github.com/Jason3S/rxjs-from-iterable.git"},"keywords":["rxjs 5.0","Iterable","Iterator","rxjs"],"author":{"name":"Jason Dent"},"license":"MIT","bugs":{"url":"https://github.com/Jason3S/rxjs-from-iterable/issues"},"homepage":"https://github.com/Jason3S/rxjs-from-iterable#readme","devDependencies":{"@types/chai":"^3.4.34","@types/mocha":"^2.2.38","chai":"^3.5.0","mocha":"^3.2.0","rxjs":"^5.0.3","ts-node":"^2.0.0","tslint":"^4.4.2","typescript":"^2.1.5"},"dependencies":{},"peerDependencies":{"rxjs":"^5.0.3"},"gitHead":"b81f77b3181ae7f7d4ced334583934bc62b7ebd4","_id":"rxjs-from-iterable@1.0.0","_shasum":"2302e5177819a5dbb813925c7b3261187c81d074","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"jason-dent","email":"jason@streetsidesoftware.nl"},"dist":{"shasum":"2302e5177819a5dbb813925c7b3261187c81d074","size":3590,"noattachment":false,"key":"/rxjs-from-iterable/-/rxjs-from-iterable-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rxjs-from-iterable/download/rxjs-from-iterable-1.0.0.tgz"},"maintainers":[{"name":"jason-dent","email":"jason@streetsidesoftware.nl"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rxjs-from-iterable-1.0.0.tgz_1485792841143_0.6368021799717098"},"directories":{},"publish_time":1485792842984,"_cnpm_publish_time":1485792842984,"_hasShrinkwrap":false}},"readme":"# rxjs-from-iterable\n\n\nThis is a simple Typescript library to help with converting iterables like [Sets](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set), [Maps](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map), and [Generators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator) into [Rx.Observables](http://reactivex.io/rxjs/class/es6/Observable.js~Observable.html).\n\nThis is a stop-gap library until Typescript 2.2, which extends support for Iterable to ES3 and ES5.\n\n## Installation\n```sh\nnpm install --save rxjs-from-iterable rxjs\n```\n\n## Usage\n\nThis library exposes three functions:\n- `observableFromIterable`: this is for working with generator functions or any other *Iterable*\n- `observableFromSet`: this is for working with Sets\n- `observableFromMap`: this is for working with Maps.\n\n\n## Examples\n\n### Sets\n\n```Typescript\nimport * as Rx from 'rxjs/Rx';\nimport {observableFromSet} from 'rxjs-from-iterable';\n\nexport function uniqueWords(text: string): Rx.Observable<string> {\n    const setUniqueWords = new Set(text.split(' '));\n    return observableFromSet(setUniqueWords);\n}\n```\n\n### Generators\n\n```Typescript\nfunction* genFib() {\n    let [a, b] = [0, 1];\n    while (true) {\n        [a, b] = [b, a + b];\n        yield a;\n    }\n}\n\nfunction fibonacci(): Rx.Observable<number> {\n    return observableFromIterable(genFib());\n}\n```\n","_attachments":{},"homepage":"https://github.com/Jason3S/rxjs-from-iterable#readme","bugs":{"url":"https://github.com/Jason3S/rxjs-from-iterable/issues"},"license":"MIT"}