Socket
Socket
Sign inDemoInstall

fs-observable

Package Overview
Dependencies
6
Maintainers
17
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fs-observable

Observables for node fs


Version published
Maintainers
17
Install size
73.0 kB
Created

Readme

Source

fs-observable

This package contains RxJS Observables for Node's fs module API.

Installation

$ yarn add fs-observable
$ npm install --save fs-observable

Usage

The example below shows how we can use the observables within this package to read in a file.

import { readFileObservable } from "fs-observable";

export default () => {
  return readFileObservable("./notebook.ipynb").pipe(
    catchError(err => {
      if (err.code === "ENOENT") {
        return false;
      }
      throw err;
    })
  );
};

Support

If you experience an issue while using this package or have a feature request, please file an issue on the issue board.

License

BSD-3-Clause

Keywords

FAQs

Last updated on 28 Apr 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc