Yarn js Package Manager – part 1

Yarn is a package manager for java Script. It is alternative to npm and bower. It is backward compatible to npm. Yarn has a great cache mechanism, so if dependency is requested more than once, after the first time, it will use cache and wont try to fetch information from the internet. Yarn installation process is … Continue reading Yarn js Package Manager – part 1

Advertisements

debugging node code

if we want to run node in a debug mode we can simply run node debug <nodeScriptFileName> And if we put debugger command inside the script then it will stop in those location and allow us to choose what to do: for continue. cont c next n for step in step s  for step out … Continue reading debugging node code

Javascript visibilty api

HTML 5 spec include nice api that allow us to know from the javascript if the page is visible to the user or not. we can also listen to event that is fired every time the visibility state change. The java script event for change in visibility is visibilitychange so we can listen to this event, and when … Continue reading Javascript visibilty api