@toolsnap/url-encoder
v1.0.0
Published
URL encoder and decoder tool. Encode and decode URLs, query parameters, and URI components.
Maintainers
Readme
@toolsnap/url-encoder
URL encoder and decoder tool.
Features
- URL encoding and decoding
- Query string parsing and building
- URI component encoding
Usage
const { encode, decode, parseQuery, buildQuery } = require('@toolsnap/url-encoder');
encode('hello world&foo=bar'); // hello%20world%26foo%3Dbar
decode('hello%20world'); // hello world
parseQuery('a=1&b=2'); // { a: '1', b: '2' }
buildQuery({ a: 1, b: 2 }); // a=1&b=2Online Tool
Try it online at risetop.top/url-encoder
License
MIT
