Socket
Book a DemoInstallSign in
Socket

@kameleoon/nodejs-event-source

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kameleoon/nodejs-event-source

Kameleoon NodeJS SDK EventSource

1.1.0
latest
npmnpm
Version published
Weekly downloads
4.5K
-22.31%
Maintainers
0
Weekly downloads
 
Created
Source

Kameleoon NodeJS SDK Event Source

Introduction

Kameleoon NodeJS SDK Event Source is a small helper package which provides default implementation for Kameleoon NodeJS SDK external Event Source built on top of NodeJS eventsource library.

For more information refer to Official Kameleoon Documentation

Contents

Installation

  • npm - npm install @kameleoon/nodejs-event-source
  • yarn - yarn add @kameleoon/nodejs-event-source
  • pnpm - pnpm add @kameleoon/nodejs-event-source
  • bun - bun install @kameleoon/nodejs-event-source

Configuration

While using @kameleoon/nodejs-sdk:

  • Import KameleoonEventSource
  • Instantiate and pass it to external SDK dependencies
import { KameleoonClient } from '@kameleoon/nodejs-sdk';
import { KameleoonEventSource } from '@kameleoon/nodejs-event-source';

const client = new KameleoonClient({
  siteCode: 'my_site_code',
  credentials: {
    clientId: 'my_id',
    clientSecret: 'my_secret',
  },
  externals: {
    eventSource: new KameleoonEventSource(),
  },
});

Keywords

kameleoon

FAQs

Package last updated on 04 Dec 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

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.