Lightweight utils set - fast and open-source. It's got cmd+k search & everything's client-side. No ads, your data stays local.
GNU General Public License v3.0
251
stars
26
forks
source link
feat: URL encoder/decoder #8
Closed
peckz closed 3 months ago
This PR introduces fully functional URL encoder/decoder. Under the hood it uses built in functions to handle URL or string encoding and decoding.
encode(input: string): string
encodeURI()
to encode the entire URL.encodeURIComponent()
to encode the string as a URI component.decode(input: string): string
http://
orhttps://
).decodeURI()
to decode the entire URL.decodeURIComponent()
to decode the string as a URI component.