Exciting release!Introducing "safe npm". Learn more →
Socket
Log inDemoInstall

rxjs-debug

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Issues
File Explorer

Advanced tools

rxjs-debug

Automated RxJS Visualizer

    1.3.0latest
    GitHub

Version published
Maintainers
1
Weekly downloads
568
decreased by-28.73%

Weekly downloads

Changelog

Source

1.3.0

Changelog

  • add a prefix to every rxjs-debug log, to allow filtering in console (c31b3a94e3be966b256db6ee39493720ba595f34) (#2)

Readme

Source


Automated RxJS Visualizer

npm i rxjs-debug --save-dev

Introduction

RxJS-Debug provides a single utility function to debug complicated RxJS streams. It visualizes the piped-operators, subscriptions and completion.

🤾 Playground

⚡ Example

The utility function $D is the only API that RxJS-Debug has. You can wrap an Observable with it and enable automated logging without any extra effort.

// a simple observable const source = of(1); // wrap it with rxjs-debug // you can also provide an optional id to identify the Observable $D(source, {id: 'Special'}) // returns a copy of the original Observable with logging enabled // apply operators on it (optional) .pipe( map(x => x + 5), switchMap(x => of(x * 2)), delay(200) ) .subscribe(); // activate the stream

This is what you'd get in the console

You can try it out here.

✍ Notes

Please don't leave the $D in your production code/build, rxjs-debug is only meant to be used during development. You should keep the rxjs-debug in your devDependencies and just use $D whenever you need it (for debugging).

🤝 Contributing

We appreciate your help with reporting issues and fixing bugs. We also welcome your suggestions and feedback.

⚖ Licence

MIT

💻 Author

Ankit Singh

Keywords

FAQs

Last updated on 19 Nov 2020

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc