
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
A framework that helps you build scalable, personalized customer engagement applications.
You can install the package from npm by running:
$ npm install elarian@latest
// on node
const { Elarian } = require('elarian');
/*
or in the browser
<script src="web.js"></script>
// or import { Elarian } from 'elarian/web'
*/
// ...
const elarian = new Elarian({
apiKey: 'YOUR_API_KEY', // or authToken: 'YOUR_AUTH_TOKEN'
orgId: 'YOUR_ORG_ID',
appId: 'YOUR_APP_ID',
});
elarian
.on('connected', async () => {
console.log('App is running!');
const customer = new elarian.Customer({ number: '+XXXXXXXXXXXX', provider: 'cellular' });
const state = await customer.getState();
console.log(state);
await customer.updateMetadata({ name: 'alice', age: 25 });
const { name } = await customer.getMetadata();
await customer.sendMessage({ number: 'MyAPP', channel: 'sms' }, { body: { text: `Hi ${name}, how are you?` }});
})
.on('error', (error) => {
console.error(error);
})
.connect();
See example for a full sample app.
Take a look at the product documentation. For detailed info on this SDK, see the reference.
Run all tests:
$ npm install
$ npm test
See SDK Spec for reference.
If you find a bug, please file an issue on our issue tracker on GitHub.
resumable
connection options prevents app from connectingFAQs
Elarian JavaScript SDK
The npm package elarian receives a total of 3 weekly downloads. As such, elarian popularity was classified as not popular.
We found that elarian demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.