Socket
Socket
Sign inDemoInstall

cloudflared

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudflared - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

2

lib/tunnel.js

@@ -53,3 +53,3 @@ "use strict";

const connections = [];
for (let i = 0; i < 4; i++) {
for (let i = 0; i < 1; i++) {
connections.push(new Promise((...pair) => [connection_resolvers[i], connection_rejectors[i]] = pair));

@@ -56,0 +56,0 @@ }

{
"name": "cloudflared",
"version": "0.3.4",
"version": "0.3.5",
"description": "Cloudflared in Node.",

@@ -35,3 +35,3 @@ "main": "./lib/lib.js",

"typescript": "^4.7.4",
"cloudflared": "0.3.4"
"cloudflared": "0.3.5"
},

@@ -38,0 +38,0 @@ "homepage": "https://github.com/JacobLinCool/node-cloudflared#readme",

# cloudflared
Cloudflared in Node.
A Node.js package that allows you to easily create HTTPS tunnels using Cloudflare's `cloudflared` command-line tool. It provides a typed API for creating tunnels and managing the `cloudflared` binary installation.
- Easily install `cloudflared` on macOS, Linux, and Windows.
- Typed API for creating tunnel.
> This tool will automatically install the [latest version of `cloudflared`](https://github.com/cloudflare/cloudflared/releases/latest) at the first time.

@@ -13,2 +10,4 @@ > Then, it just passes down the command to `cloudflared`.

You can install this package using your favorite package manager:
### PNPM

@@ -32,17 +31,9 @@

## Usage
## CLI Usage
You can find the usage of `cloudflared` here: <https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-useful-commands/>
You can use the `cloudflared` command-line tool to create HTTPS tunnels. You can find the usage of `cloudflared` [here](https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-useful-commands/).
Or just try:
In addition to the standard `cloudflared` commands, this package also provides an extra subcommand: `cloudflared bin`. You can use it to manage the `cloudflared` binary version.
```sh
cloudflared --help
```
### Extra: `bin` subcommand
There is an extra subcommand: `cloudflared bin`. You can use it to manage the cloudflared binary version.
```sh
❯ cloudflared bin --help

@@ -62,4 +53,8 @@ cloudflared bin : Prints the path to the binary

You can also use it as a library in your TypeScript / JavaScript projects.
### Binary Path & Install
You can get the path of the `cloudflared` binary and install it using the `bin` and `install` functions, respectively.
```js

@@ -66,0 +61,0 @@ import { bin, install } from "cloudflared";

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