Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@adetoola/sms
Advanced tools
SMS is a succinct and flexible way to add Nigerian SMS providers integration to nodejs apps.
SMS is a succinct and flexible way to add Nigerian SMS providers integration to nodejs apps.
Getting started with SMS is quite easy, just install using your favourite package manager.
yarn add @adetoola/sms
npm install @adetoola/sms
You can specify any of the supported sms gateway from the list below:
import SMS from '@adetoola/SMS';
const sms = new SMS('SMSLive247');
Each SMS service provider will give authorised users a set of credentials to use when sending SMS or interacting with their services.
# Test
SMS_SENDER='YOUR_SENDER_NAME_HERE'
# SMS247Live
SMS_SENDER='YOUR_SENDER_NAME_HERE'
SMS_SESSION_ID='YOUR_SESSION_ID_HERE'
Using SMS is quite simple.
const sms = new SMS('SMSLive247');
sms.sender(sender).country(country).credentials(credentials);
const messageId = sms.send('08123456789', 'NG', 'Hi, I am using Adetoola SMS package');
console.log(messageId);
Method | SMS247LIVE |
---|---|
SMS::send(recipient, msg [, msg_type]) | + |
SMS::schedule(recipient, msg, datetime[, msg_type]) | + |
SMS::balance() | + |
SMS::charge(msg_id) | + |
SMS::status(msg_id) | + |
SMS::coverage(recipient) | + |
SMS::stop(msg_id) | + |
SMS::history() | + |
Input | Description | Accepted Formats |
---|---|---|
recipient | Comma separated numbers, number or array | +2348012345678, 2348012345678, 8012345678, 0812345678 |
country | "Country" is a two-letter ISO country code (like NG) | [AZ]{2} |
msg | Text message which will be sent to the numbers. | [a-zA-Z0-9+_-."'\s]{1,160} |
sender | Number to display as sender | [a-zA-Z0-9_-]{1,11} |
msg_type | Normal SMS, Flash or MMS | TEXT, FLASH, MMS |
datetime | Datetime in format Y-m-d H:i:s . | 2016-03-16 22:40:34 |
msg_id | Message ID, provider by gateway | [a-zA-Z0-9] |
#coming soon!
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email adetola.onasanya@gmail.com instead of using the issue tracker.
SMS is an open-sourced package licensed under the MIT license.
FAQs
SMS is a succinct and flexible way to add Nigerian SMS providers integration to nodejs apps.
The npm package @adetoola/sms receives a total of 1 weekly downloads. As such, @adetoola/sms popularity was classified as not popular.
We found that @adetoola/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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.