Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

RxJS DOM sensors

License

NotificationsYou must be signed in to change notification settings

streamich/rx-use

Repository files navigation

Sensor and side-effect library forrxjs. Do you want to contribute? See,help wanted.

Observables

  • location$ — browser location and history sensor.
    • pathname$ — browser location pathname sensor.
  • network$ — returns consolidate network status info.
    • onLine$boolean whether user is on-line.
    • connection$ — information about user's network connection.
  • windowSize$ andwindowSizeRaf$ — browser window dimension sensor.
  • darkTheme$ — emitstrue if UI should use dark theme.
  • matchMedia$() — returns boolean indicating media query match.
  • stdin$ — listen for data coming from STDIN.
  • ansiKeys$ — listen for ANSI terminal key presses.
  • pubsub — publish/subscribe mechanism for inter-tab communication in browser.
  • tablist — keeps track of all same origin tabs, elects leader and allows to send messages to all tabs or create private channels between any two tabs.

Operators

  • raf() — de-bounces events usingwindow.requestAnimationFrame.

Other

  • fromStream() — constructs observable from Node.js readable stream.

Most observables imported from this library haveReadonlyBehaviorSubject type.Which is anObservable with an extra.getValue() to access the current value of the observable.

typeReadonlyBehaviorSubject<T>=Observable<T>&Pick<BehaviorSubject<T>,'getValue'>;

License

Unlicense — public domain.

About

RxJS DOM sensors

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp