Clean a string to make it friendly for the URL.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Source
README.md
package.yml

README.md

urlFriendly

Clean a string to make it friendly for the URL.

How to use

var string = urlFriendly("Hello World!");

string.escape(); // Hello%20World%21

OR

string.humanReadable(); // hello-world