JSPM

ascii-url-encoder

1.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 871
  • Score
    100M100P100Q111834F
  • License MIT

ASCII url ecoder and decoder

Package Exports

  • ascii-url-encoder
  • ascii-url-encoder/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ascii-url-encoder) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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