Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@tinynodes/rxjs-random

tanepiper10MITdeprecated1.0.1TypeScript support: included

This library is now published as @rxjs-ninja/rxjs-random. Please update your package.json

Operators for RxJS Observable using randomness

Rx, RxJS, ReactiveX, ReactiveExtensions, Streams, Observables, Observable, Stream, ES6, ES2015, Typescript, Reactive, Utility, Math, Random, Numbers

readme

RxJS Primitives - Random Operators

rxjs-random Quality Gate Status

This library contains the RxJS Primitives for working with generating random numbers and strings.

How to install

npm install @tinynodes/rxjs-string

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[1.0.1] - 2020-11-20

Changed

  • Minor doc updates and new homepage URL

[1.0.0] - 2020-11-19

Added

  • fromRandom function that generates an Observable stream of random numbers between a min and max range (defaults are 0 and 1). This method uses a timer an optionally can be passed a emitTime that will set a timer to emit, otherwise it's 0
  • fromRandom function that generates an Observable stream of random integer numbers between a min and max range (defaults are 0 and 100). This method uses a timer an optionally can be passed a emitTime that will set a timer to emit, otherwise it's 0
  • fromRandomString function that generates an Observable stream of random strings of passed length (default is 10 characters). This method uses a timer an optionally can be passed a emitTime that will set a timer to emit, otherwise it's 0. By default the string only contains upper and lower case characters, but a third option can be provided to include number and special characters.
  • fromRandomCrypto function that generates an Observable stream of random numbers from Crypto.getRandomValues using it to return one value at a time. This method uses a timer an optionally can be passed a emitTime that will set a timer to emit, otherwise it's 0.