We made a module to encapsulate the logic that chooses the nodejs or browser dependency that actually downloads a file when the module is used.