New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

json-rpc-proxy

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-rpc-proxy

The helper functions for JSON-RPC 2.0 requests and notifications

latest
Source
npmnpm
Version
0.8.0
Version published
Maintainers
1
Created
Source

json-rpc-proxy

The helper functions for JSON-RPC 2.0 requests and notifications.

This module does not check types, nor convert unsupported types (e.g., undefined to null). This is intentional so you can extend JSON-RPC to values ​​other than JSON.

Install

npm install --save json-rpc-proxy
# or
yarn add json-rpc-proxy

API

createRequestProxy

function createRequestProxy<T extends object, U = unknown>(createId: () => string): RequestProxy<T, U>

createNotificationProxy

function createNotificationProxy<T extends object, U = unknown>(): NotificationProxy<T, U>

applyRequest

function applyRequest<T>(callables: object, request: JsonRpcRequest<T>): Promise<JsonRpcResponse<T>>

applyNotification

function applyNotification<T>(callables: object, notification: JsonRpcNotification<T>): Promise<void>

Keywords

json-rpc

FAQs

Package last updated on 16 Feb 2026

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