@bss-sbc/frp
TypeScript icon, indicating that this package has built-in type declarations

1.3.4 • Public • Published

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}
)

Readme

Keywords

Package Sidebar

Install

npm i @bss-sbc/frp

Weekly Downloads

1

Version

1.3.4

License

MIT

Unpacked Size

9.7 kB

Total Files

11

Last publish

Collaborators

  • hiepnguyennk
  • xhoang0509
  • midadean