observable-fs
TypeScript icon, indicating that this package has built-in type declarations

2.2.8 • Public • Published

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

Package Sidebar

Install

npm i observable-fs

Weekly Downloads

115

Version

2.2.8

License

MIT

Unpacked Size

78.9 kB

Total Files

42

Last publish

Collaborators

  • enrico.piccinin