Socket
Book a DemoInstallSign in
Socket

playit.gg

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

playit.gg

An Unofficial JavaScript Wrapper For https://playit.gg

1.6.7-CLI-2
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Playit.GG

An Unofficial JavaScript Wrapper For PlayIt.GG

Installation

To Install, Run:

npm i --save playit.gg

Basic Usage

const PlayIt = require('playit.gg');

(async () => {
  // Start PlayIt
  const playit = await PlayIt();

  // Create A PlayIt Tunnel
  const tunnel = await playit.createTunnel(); // Default Is TCP On Port 80

  console.log(`http://${tunnel.url}`); // Print the tunnel url
})();

CLI

To Install The CLI, Run:

npm install -g playit.gg

Or Download From The Releases

Options

Usage: PlayIt --tunnels <Port:Proto:?IP...>

Options:
  -V, --version                      output the version number
  -t, --tunnels <Port:Proto:?IP...>  Tunnels To Create With The Specified Port, Prototype And IP. The IP Is Optional
  -e, --envs <Name:Value...>         Environment Options For PlayIt
  -h, --help                         display help for command

API

Most Items In This Module Are Asynchronous

Exports

The Default Export

TypeAsyncReturnsDescription
FunctionYesPlayItThe Started PlayIt Class

Example:

const PlayIt = require('playit.gg');

(async () => {
  const playit = await PlayIt(); // Start PlayIt
})();

PlayIt

PlayIt Will Not Work Unless You Run The .start Method

TypeAsyncReturnsDescription
ClassNoPlayItThe Unstarted PlayIt Class

Example:

const { PlayIt } = require('playit.gg');

let playit = new PlayIt();

(async () => {
  // Do whatever you want before starting PlayIt
  // The reason you might want to do this is to use some variables PlayIt provides before starting it
  // As it takes a few seconds to start
  playit = await playit.start(); // Start PlayIt
})();

Methods

TODO

Contribution

PRs Are Welcome!

Keywords

playit

FAQs

Package last updated on 02 Oct 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.