New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rx-fs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rx-fs

RxJs wrapper for Node's fs module.

  • 1.0.0-alpha.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-42.86%
Maintainers
1
Weekly downloads
 
Created
Source

RxFs

This is an RxJS wrapper for the Node.js fs module. It is intended to track the fs API as closely as possible, with the following exceptions:

  • If the fs method expects a callback, the RxFs method instead returns an Observable.
  • If the fs method creates a Readable stream, RxFs has an analogous method that creates an Observable, with Stream replaced by Observable in the name. For example, RxFs.createReadStream creates a stream and RxFs.createReadObservable creates an observable.
  • The result from calling fs.createReadObservable has property openSource, which is an observable indicating the file has been opened.

Note that Rx.Observable has a pipe method on its prototype, allowing for operations like this:

var source = rxFs.createReadObservable(input);
var sink = rxFs.createWriteStream(output);
source.pipe(sink);

Not all the methods are currently supported. Pull requests welcome!

See also this alternative that has a more full-featured API but does not match the current node fs API.

Keywords

FAQs

Package last updated on 13 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc