This package contains RxJS Observables for Node's fs
module API.
$ yarn add fs-observable
$ npm install --save fs-observable
The example below shows how we can use the observables within this package to read in a file.
import { readFileObservable } from "fs-observable";
export default () => {
return readFileObservable("./notebook.ipynb").pipe(
catchError(err => {
if (err.code === "ENOENT") {
return false;
}
throw err;
})
);
};
If you experience an issue while using this package or have a feature request, please file an issue on the issue board.