Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ascii-url-encoder

prince-ao3.4kMIT1.2.0TypeScript support: included

ASCII url ecoder and decoder

ascii, url, encoder, url-encoder, ascii-url-ecoder

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");