Socket
Socket
Sign inDemoInstall

@juit/pgproxy-client-whatwg

Package Overview
Dependencies
5
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @juit/pgproxy-client-whatwg

This package provides client for PGProxy Servers based on WHATWG `fetch` and WebSockets, and the WebCrypto API.


Version published
Weekly downloads
73
increased by12.31%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

PostgreSQL Proxy Client (WHATWG + WebCrypto Implementation)

This package provides client for PGProxy Servers based on WHATWG fetch and WebSockets, and the WebCrypto API.

  • Usage with PGClient
  • Direct Usage
  • PGProxy
  • Copyright Notice
  • License

Usage with PGClient

Simply register the client by importing it, and ensure that the PGURL environment variable is set to the HTTP/HTTPS url of the server (or specify the URL in the constructor):

import '@juit/pgproxy-client-whatwg'
import { PGClient } from '@juit/pgproxy-client'

const client = new PGClient('https://my-secret@my-pgproxy-server:54321/')

Direct usage

The WHATWG client can be used directly by simply importing the WHATWGClient class:

import { WHATWGClient } from '@juit/pgproxy-client-whatwg'

const client = new WHATWGClient('https://my-secret@my-pgproxy-server:54321/')

Keywords

FAQs

Last updated on 26 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc