ascii-url-encoder
v1.2.0
Published
ASCII url ecoder and decoder
Downloads
7,359
Maintainers
Readme
ascii-url-encoder
An ASCII url ecoder and decoder.
⚠️ The decoder is just
decodeURIComponent(str)
All that was added is parentesis encoding.
Installation
yarn add ascii-url-encoder
or
npm intall ascii-url-encoder
Usage
import { encode, decode } from "ascii-url-encoder";
const encodedString = encode("(lorem) ipsum");
const decodedString = decode("%28lorem%29%20ipsum");