encodeURI-plus
Minimally and safely encode URIComponents for use in shorter URLs. Avoid Percent-encoding.
Features
- Allow non-ASCII characters
- Allow reserved characters in querystring values and hash
- Customizable options.
Caveats
Path params seem to have to most limitations. Avoid ./\
, or encode it first.
Usage
This library has no dependencies, and is browser-compatible, therefore
Also available on NPM.
npm i encodeuri-plus