Getting Started
Installation
yarn add @bottlenose/rxfsOr...
npm i --save @bottelnose/rxfsRead file content into an Observable
import path from 'path';
import {fromFile} from 'rxfs';
const csvContent = fromFile({
filePath: path.resolve(__dirname, './my-csv.csv'),
});
csvContent$.subscribe(console.log);
// "name","scariness"
// "Blackbeard",10
// "Morgan",9
// "Sparrow",2
// "Crunch",1Write Observable content into a file (overwriting its contents)
Append Observable content to a file
Last updated
Was this helpful?