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

@juit/pgproxy-client-node

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@juit/pgproxy-client-node

This package provides a NodeJS specific client for PGProxy Servers.

  • 1.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18
decreased by-90.67%
Maintainers
1
Weekly downloads
 
Created
Source

PostgreSQL Proxy Client (NodeJS Implementation)

This package provides a NodeJS specific client for PGProxy Servers.

  • 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-node'
import { PGClient } from '@juit/pgproxy-client'

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

Direct usage

The NodeJS client can be used directly by simply importing the NodeClient class:

import { NodeClient } from '@juit/pgproxy-client-node'

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

Keywords

FAQs

Package last updated on 23 Feb 2024

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