Struggling to implement directory reading using rxjs-style, any suggestions?
import { readdir } from 'fs';
import { bindNodeCallback } from 'rxjs/observable/bindNodeCallback';
import { tap } from 'rxjs/operators';
function test() {
bindNodeCallback(readdir).pipe(
tap((x: any) => console.log(x))
).subscribe();
}
test();
Encountering issues with pipelining bindNodeCallback
, any insights?
Contact me at [email protected]