Getting Started

Installation

yarn add @bottlenose/rxfs

Or...

npm i --save @bottelnose/rxfs

Read 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",1

Write Observable content into a file (overwriting its contents)

Append Observable content to a file

Last updated

Was this helpful?