Socket
Book a DemoInstallSign in
Socket

monkey-patches-rx

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

monkey-patches-rx

monkey patch for https://github.com/Reactive-Extensions/RxJS

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

:see_no_evil: rx :hear_no_evil:

monkey patch for https://github.com/Reactive-Extensions/RxJS

Install

npm i monkey-patches-rx --save --save-exact

Usage

Setup

var options = {/* ... */};
Rx = require('rx');
require('monkey-patches-rx')(Rx, options);

Options

all

with this option you can enable all patch.

options = {all: true};
// setup

typeFilter

with this option following methods will be added to Observables.

  • isTruthty
  • isFalsey
  • isDefined
  • isNull
  • isUndefined
  • isString
options = {typeFilter: true};
// setup
var obj$ = Rx.Observable.from([0, 1, null, undefined, false, true, '', {}, [], 'Hi']);
obj$.isTruthty(); // 1 true {} [] 'Hi'
obj$.isFalsey(); // 0 null undefined false ''
obj$.isDefined(); // 0 1 null false true '' {} [] 'Hi'
obj$.isNull(); // null
obj$.isUndefined(); // undefined
obj$.isString(); // '' 'Hi'

related issue

Compatibility

I test this package with rx@4.1.0 and node@v5.3.0

Sem version, backward compatibility and ...

No. this is only :monkey_face: patch. so every time install this package with --save-exact option.

Keywords

monkey-patchs

FAQs

Package last updated on 19 May 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