Closed elf-pavlik closed 1 year ago
http://example.com
and http://example.com/
are equivalent. I'm not sure of their reasoning for preserving /
, but I prefer without the /
, as it's cleaner, and this package is often used for presenting URLs, not just comparisons. I don't have any plans to change the defaults.
https://github.com/sindresorhus/normalize-url#removesingleslash
Looking at https://www.rfc-editor.org/rfc/rfc3986#section-6.2.3
Which is the
http://example.com/
version