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

@bss-sbc/frp

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bss-sbc/frp

This is a Node.js wrapper package for the [frp](https://github.com/fatedier/frp) library, allowing you to easily integrate and utilize frp functionality within your Node.js applications. frp is a fast reverse proxy to help you expose a local server behind

  • 1.3.4
  • latest
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Node.js Wrapper for frp library

This is a Node.js wrapper package for the frp library, allowing you to easily integrate and utilize frp functionality within your Node.js applications. frp is a fast reverse proxy to help you expose a local server behind a NAT or firewall to the Internet.

Installation

$ yarn add @bss-sbc/frp

Usage

frp Server

const {frps} = require("@bss-sbc/frp");

frps.start(
    {
        common: {
            "bind_port": 7000,
            "vhost_http_port": 8080
        }
    },
    {log: true, unref: false}
)

frp Client

const {frpc} = require("@bss-sbc/frp");

frpc.start(
    {
        common: {
            "server_addr": "x.x.x.x",
            "server_port": 7000
        },
        web: {
            "type": "http",
            "local_port": 8080,
            "custom_domains": "www.example.com"
        }
    },
    {log: true, unref: false}
)

Keywords

FAQs

Package last updated on 15 Aug 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