Added streams support + tests

Please increase the version and publish to npm if you accept the PR