Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
eurobate-sms
Advanced tools
This library provides a JavaScript/TypeScript wrapper around the Eurobate JSON APIs.
WARNING: Do not use this library from client side JavaScript, since you will make your password public. |
---|
It comes on two flavors.
Install with npm:
npm i eurobate-sms --save
You can now import the library and use the sendSMS
function. The TypeScript typings will provide added code security
when using it in IDEs.
const { sendSMS } = require('eurobate-sms');
sendSMS({
messages: [
{
originator: 'Sender name',
msisdn: '004740829232',
message: 'Liten test'
}
],
user: "myUsername",
password: "myPassword",
simulate: 1,
ttl: 3600
}).then(res => {
console.log('Response from server:', res);
});
Use npm to install the dependency.
npm i eurobate-sms --save
import { enonicSendSMS } from 'eurobate-sms';
import * as E from "fp-ts/lib/Either";
const response = enonicSendSMS({
messages: [
{
originator: 'Sender name',
msisdn: '004740829232',
message: 'Liten test'
}
],
user: "myUsername",
password: "myPassword",
simulate: 1,
ttl: 3600
});
E.fold(
(res) => console.log('Response from server:', res),
(e) => console.error('Error:', e)
)(response)
To build the project run the following command:
npm run build
FAQs
Wrapper around the Eurobate APIs for JavaScript and TypeScript
The npm package eurobate-sms receives a total of 0 weekly downloads. As such, eurobate-sms popularity was classified as not popular.
We found that eurobate-sms demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.