Efficient way to test a pull request for an npm package dependency

I was wondering what the most efficient way is to test a pull request in an npm module?

Imagine the following (quite typical) use case:
– you are using an npm package as a dependency in your project
– you discover a problem, report it and someone offers a fix in a pull request

What is the most effective way to test the pull request without waiting for the pull request to be merged?

I’m aware that I can fork the project, merge any pull request into my fork and then install from my local directory but I was wondering, if there are any more efficient solutions to this typical problem?

read more

Window drag event c#

I am trying to hook into the window drag event of every active/visible windows using C# in a System tray app. I have the code to find and move all the windows figured out using PInvoke, but am unable to figure out how to hook into the drag event.

My goal is to run the program in the background and while dragging a window be able to snap it into preset locations (showing preview windows while the drag is occurring and snapping when released).

How would I hook into the window drag event?

Window drag event c#

read more