Adding unit test for `linksTo` method
Detecting environment and exposing api for node/browser