-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove url fragments from host name #41
Conversation
Hey thanks! It addresses an issue raised by #38. I wonder why you do not use directly the |
Yeah, I could also use But if you feel more comfortable with the url-module, I can change that 😄 |
I thought about this question too. Usually I'm a big fan of small libs which do one thing well. But I also like clear and simple APIs and imho it's ok to provide a little bit extra logic if I can save some lines in the application. It's definitely not an uncommon use-case to extract the domain portion of an url. But I guess this is a matter of taste. 😉 BTW: Travis CI seems to fail because of node 0.8 incompatible dependencies. |
@jhnns okay got it :-) I wanted to hear more about that before merging. Rebase from master, I have removed Node 0.8 compatibility and updated modules anyway. |
Ok, ready to merge |
Remove url fragments from host name
👍 |
When working with tld.js I thought it might be useful if tld.js would also work with host names containing url fragments:
The pull-request contains tests for this feature and updates the README accordingly.