You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

collar.js-dev-client

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

collar.js-dev-client

collar.js client side dev tool

1.0.2
latest
Source
npm
Version published
Maintainers
1
Created
Source

Collar.js Dev Tool (client)

This tool is used to collect dev information in your collar.js based application.

Install

For node.js application

npm install collar.js-dev-client --save-dev

For web application, you can directly download it from github:

https://github.com/bhou/collarjs-dist

Usage

For node.js application

const DevToolAddon = require('collar.js-dev-client');
collar.use(new DevToolAddon());

For web application

<script src="collar.js-dev-client.js"></script>

It will register a global variable DevToolAddon;

collar.use(new DevToolAddon());

You can pass options to the DevToolAddon constructor:

  • process: string, the process name
  • url: string, the collar-dev-server url, default: ws://localhost:7500
  • interval: long, the interval to send collected data to collar dev server in milliseconds, default, 1000

About version

You need to use the right version of collar.js-dev-client to match the collar dev server version.

Usually both of them use the same major version to keep the compatibility:

collar-dev-server v0.* matches collar.js-dev-client v0.* collar-dev-server v1.* matches collar.js-dev-client v1.*

Keywords

collar.js

FAQs

Package last updated on 25 Feb 2017

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