@neutils/urlencode
v0.9.5
Published
Percent-encode a string for use in URLs.
Readme
urlencode
Percent-encode a string for use in URLs.
Usage
urlencode <str>Arguments
| Argument | Description |
|----------|-------------|
| str | String to encode |
Examples
# Encode a query value
urlencode "hello world"
# hello%20world
# Encode special characters
urlencode "price=10¤cy=€"
# price%3D10%26currency%3D%E2%82%AC