Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
rxjs-debug
Advanced tools
Readme
npm i rxjs-debug --save-dev
RxJS-Debug provides a single utility function to debug complicated RxJS streams. It visualizes the piped-operators, subscriptions and completion.
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.
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).
We appreciate your help with reporting issues and fixing bugs. We also welcome your suggestions and feedback.
FAQs
Automated RxJS Visualizer
The npm package rxjs-debug receives a total of 815 weekly downloads. As such, rxjs-debug popularity was classified as not popular.
We found that rxjs-debug demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.