Socket
Book a DemoInstallSign in
Socket

@cloakbits/manager

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloakbits/manager

A utility for managing Cloakbits stealth sessions.

0.0.3
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Note: This utility is an interface for Cloakbits launcher that can be downloaded after signing up an account at Cloakbits.

Cloakbits Manager for NodeJS

npm version npm version typedoc

logo

A utility for managing Cloakbits stealth sessions.

It facilitates communication with local API:

  • Create new stealth webdriver sessions,
  • Modify session parameters such as User-Agent, WebGL attributes or TCP fingerprint masking,
  • Monitor session activity

and more.

Usage

npm i @cloakbits/manager --save
# or alternatively
yarn add @cloakbits/manager

To use this utility, call configure(options) and checkHealth as early as possible. This will ensure launcher process is running, is correctly configured and ready to accept connections.

import manager from "@cloakbits/manager";

manager.configure();

(async () => {
    await manager.checkHealth();
    // ...
    const sessionParams = {
        autopersist: true,
        platform: "MacIntel",
        screen: {
            width: 1280,
            height: 800    
        }
    };
    const sessionId = await manager.sessions.create(sessionParams);
})();
 

Use session identifier sessionId as an additional parameter when launching webdriver.

import puppeteer from "puppeteer";

/// ...

const browser = await puppeteer.launch({
    executablePath: "/app/cloakbits",
    args: [
        `--cb-session-id=${sessionId}`
    ]
});

The identifier can be used to modify session behavior at runtime.

await manager.sessions.depersist(sessionId); // once webdriver process stops the session data will be removed  

FAQs

Package last updated on 01 Feb 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.