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

zrok

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zrok

node wrapper for zrok

latest
Source
npmnpm
Version
0.0.11
Version published
Maintainers
1
Created
Source

zrok

To install dependencies:

use pnpm/yarn/npm

$ pnpm add zrok
# or
$ yarn add zrok
# or
$ npm i zrok

use bun

bun i --trust zrok

Invite

import zrok from "zrok";
const response = await zrok.invite("lerte@zrok.com");
// if success
// response.status 201
// response.statusText Created

Create Account

Check your email inbox, click the red button Create Account

Enable

// Enable your enviroment from Create Account link
// Copy the enable text for top right of your account
// paste to the enable parameter
const await zrok.enable("enalbe ************");

Sharing

const share = zrok.share("share public localhost:8080");
// kill share
share.kill();

Overview

const overview = zrok.overview();
// result
// {
//   environments: [
//     {
//       environment: [Object ...],
//     }
//   ],
// }

⚠️ Note:

如果安装失败,可以手动从https://github.com/openziti/zrok/releases下载对应平台最新的压缩包 tar.gz 格式的,直接放到 node_modules/zrok 目录,再执行

node node_modules/zrok/dist/install.js

Keywords

zrok

FAQs

Package last updated on 30 Apr 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