url-assist
Version:
URL library at your ease
27 lines (26 loc) • 558 B
TypeScript
/**
* Query String encode
*
* @since 1.2.7
* @category string
* @param {string} query Passing the completet domain url
* @returns {string} Return the string.
* @example
*
* formatUrl('helloworld')
*=> helloworld/
*/
export function queryEncode(query: string): string;
/**
* Query String decode
*
* @since 1.2.7
* @category string
* @param {string} query Passing the completet domain url
* @returns {string} Return the string.
* @example
*
* formatUrl('helloworld')
*=> helloworld/
*/
export function queryDecode(query: string): string;