Socket
Socket
Sign inDemoInstall

elarian

Package Overview
Dependencies
36
Maintainers
3
Versions
81
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    elarian

Elarian JavaScript SDK


Version published
Weekly downloads
1
decreased by-80%
Maintainers
3
Install size
9.66 MB
Created
Weekly downloads
 

Readme

Source

Elarian

NPM

A framework that helps you build scalable, personalized customer engagement applications.

Install

You can install the package from npm by running:

$ npm install elarian@latest

Usage


const { initializeClient }  = require('elarian');


// ...

const elarian = await initializeClient({
    token: 'YOUR_TOKEN',
    appId: 'YOUR_APP_ID',
});

elarian.on('consentDenied', (userId) => {
    // ...
});

elarian.on('consentGranted', (userId, data) => {
    // ...
});

const { state } = await elarian.fetchAppState();

await elarian.updateAppState(Buffer.from('abc'));

await elarian.sendMessage('Hello test');

await elarian.collectPayment({ amount: 10, currency: 'UGX' });

Documentation

For detailed info on this SDK, see the reference.

Development

Run all tests:

$ npm install
$ npm test

See SDK Spec for reference.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Read the contribution guide for more information.

Issues

If you find a bug, please file an issue on our issue tracker on GitHub.

Known Issues

  • Missing partial state updates
  • Missing consent event notifications
  • Missing sendMessage() and collectPayment() implementations

Keywords

FAQs

Last updated on 19 Feb 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc