How to use the fs-observable.createSymlinkObservable function in fs-observable

To help you get started, we’ve selected a few fs-observable examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nteract / nteract / applications / desktop / src / main / cli.ts View on Github external
catchError(() => {
          if (!process.env.HOME) {
            throw new Error("HOME not defined");
          }
          const dest = join(process.env.HOME, ".local/bin/nteract");
          return createSymlinkObservable(target, dest);
        })
      );
github nteract / nteract / applications / desktop / src / main / cli.js View on Github external
catchError(() => {
          const dest = join(process.env.HOME, ".local/bin/nteract");
          return createSymlinkObservable(target, dest);
        })
      );
github nteract / nteract / applications / desktop / src / main / cli.ts View on Github external
mergeMap(() => {
      const target = join(binDir, "nteract.sh");
      return createSymlinkObservable(target, "/usr/local/bin/nteract").pipe(
        catchError(() => {
          if (!process.env.HOME) {
            throw new Error("HOME not defined");
          }
          const dest = join(process.env.HOME, ".local/bin/nteract");
          return createSymlinkObservable(target, dest);
        })
      );
    })
  );
github nteract / nteract / applications / desktop / src / main / cli.js View on Github external
mergeMap(() => {
      const target = join(binDir, "nteract.sh");
      return createSymlinkObservable(target, "/usr/local/bin/nteract").pipe(
        catchError(() => {
          const dest = join(process.env.HOME, ".local/bin/nteract");
          return createSymlinkObservable(target, dest);
        })
      );
    })
  );

fs-observable

Observables for node fs

BSD-3-Clause
Latest version published 5 years ago

Package Health Score

63 / 100
Full package analysis