How to use the rx-lite-aggregates.Subject function in rx-lite-aggregates

To help you get started, we’ve selected a few rx-lite-aggregates 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 sx1989827 / DOClever / node_modules / inquirer / lib / prompts / editor.js View on Github external
Prompt.prototype._run = function (cb) {
  this.done = cb;

  this.editorResult = new rx.Subject();

  // Open Editor on "line" (Enter Key)
  var events = observe(this.rl);
  this.lineSubscription = events.line.forEach(this.startExternalEditor.bind(this));

  // Trigger Validation when editor closes
  var validation = this.handleSubmitEvents(this.editorResult);
  validation.success.forEach(this.onEnd.bind(this));
  validation.error.forEach(this.onError.bind(this));

  // Prevents default from being printed on screen (can look weird with multiple lines)
  this.currentText = this.opt.default;
  this.opt.default = null;

  // Init
  this.render();

rx-lite-aggregates

Lightweight library with aggregate functions for composing asynchronous and event-based operations in JavaScript

Unrecognized
Latest version published 9 years ago

Package Health Score

67 / 100
Full package analysis

Popular rx-lite-aggregates functions