New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cyberoam

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cyberoam

A JavaScript library for accessing cyberoam

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

cyberoam.js

A JavaScript library for accessing cyberoam

Installation

$ npm install cyberoam --save

Usage

const Cyberoam = require('cyberoam');

// For information about the object, see the "options" section below
const options = { ... };

const cyberoam = new Cyberoam(options);

cyberoam.login(username, password)
  .then(() => { ... })
  .catch((errorMessage) => { ... });

cyberoam.logout(username)
  .then(() => { ... })
  .catch((errorMessage) => { ... });

// You don't really want to do anything if it's already live
cyberoam.checkLiveStatus(username)
  .catch(() => { ... });

Options

You may wish to provide any of the following options when creating an object of type Cyberoam. Any options skipped out will be replaced by their respective default values.

  1. loginURL: String

The URL for the login/logout page at cyberoam.

Default Value: "http://172.16.68.6:8090/login.xml"

  1. liveURL: String

The URL for the live page at cyberoam.

Default Value: "http://172.16.68.6:8090/live"

  1. loginMessage: String

The message that is returned upon successful login.

Default Value: "You have successfully logged into JIIT Internet Server.

  1. logoutMessage: String

The message that is returned upon successful login.

Default Value: "You have successfully logged off from JIIT Internet Server."

  1. commonOptions: Object

The common options that are passed to each call to the request function

Default Value:

  {
    timeout: 1000
  }

Setup (for contributors)

$ git clone https://github.com/ryzokuken/cyberoam.js.git
$ cd cyberoam.js
$ npm install

License

GPL-3.0 © Ujjwal Sharma

FAQs

Package last updated on 21 Feb 2018

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

  • 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