Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/urlencode

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/urlencode

TypeScript definitions for urlencode

  • 1.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.3K
decreased by-46.5%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/urlencode

Summary

This package contains type definitions for urlencode (https://github.com/node-modules/urlencode).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/urlencode.

index.d.ts

interface charsetParam {
    charset: string;
}

/**
 * Encode string
 * @param str The string for encoding.
 */
declare function urlencode(str: string, charset?: string): string;

declare namespace urlencode {
    /**
     * Encode string
     * @param str The string for encoding.
     */
    function encode(str: string, charset?: string): string;

    /**
     * Decode string
     * @param encodedString The encoded string.
     */
    function decode(encodedString: string, charset?: string): string;

    /**
     * Parse querystring
     * @param queryString Querystring
     * @param charsetParam The charset for parsing
     */
    function parse(queryString: string, charsetParam: charsetParam): any;
    interface charsetParam {
        charset: string;
    }
    /**
     * Stringify object
     * @param obj Query Object
     * @param charsetParam The charset for parsing
     */
    function stringify(obj: any, prefix?: charsetParam, charsetParam?: charsetParam): string;
}

export = urlencode;

Additional Details

  • Last updated: Wed, 18 Oct 2023 11:45:07 GMT
  • Dependencies: none

Credits

These definitions were written by kimcoder.

FAQs

Package last updated on 18 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc