I use node.js URL class to parse different user URLs, no problem with usual protocols and no problem with file: urls under linux.
URL
file:
But I have fou