Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

observable-fs

EnricoPicci41MIT2.2.8TypeScript support: included

Provides as Observables some of the APIs of node fs

rxjs, observable, node, node-fs

readme

Build Status Coverage Status

observable-fs

Provides as Observables some of the APIs of node fs

  • readLinesObs: reads a file and, when finished, emits an array containing all the lines of the file
  • writeFileObs: writes a file and emits the name of the file when the write operation is completed
  • filesObs: reads all the files present in a directory and its subdirectories and emits an array with the names of the files
  • dirNamesListObs: emits a list of names of the subdirectories contained in a directory
  • makeDirObs: creates a directory and emits the name of the directory created when the operation is completed
  • makeTempDirObs: creates a temporary directory and emits the name of the directory created when the operation is completed
  • deleteDirObs: deletes a directory and emits the name of the directory deleted when the operation is completed
  • appendFileObs: append a line at the end of a file and emits when the operation is completed
  • deleteFileObs: deletes a file and emits the name of the file deleted when the operation is completed