
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@pixelplex/sms-service
Advanced tools
Library for fast implementation of the functionality of sending SMS messages.
Supported gateways:
and debug gateways:
The service receive messages and sends them via SMS.
@pixelplex/sms-service to your applicationSmsModule.forRoot from @pixelplex/sms-service to import in your modulethis.smsService.sendSms('+375297775544', 'auth', { name: 'Афанасий' }); where smsService is SmsSenderService from @pixelplex/sms-serviceDidn't understand anything? Okay, let's see more details
The service uses Handlebars as template engine. So all your sms templates should be prepared as handlebars templates.
Welcome, {{name}}! This is subject
| Name | Description | Example |
|---|---|---|
| gateways | Array of gateways to send email, supported: smpt, slack, console | ['slack'] |
| customGateways | Array of custom gateways classes | [CustomGateway] |
| slack.url | Hook URL in case you want to duplicate messages to Slack | https://hooks.slack.com |
| *.sender | Sms sender phone number | +375333333333 |
| * | Other gateway-specific options like username, password, sid etc. |
1. Install npm package
yarn add @pixelplex/sms-service
2. Import SmsModule in your module you'll send sms from:
import { Module } from '@nestjs/common';
import { SmsModule } from '@pixelplex/sms-service';
import { AppService } from './app.service';
@Module({
controllers: [],
imports: [
MailModule.forRoot({
gateways: ['slack', 'twilio', 'console'],
slack: { url: 'hooks.slack.com' },
twilio: {
sid: 'SID',
token: 'TOKEN',
sender: '+375333333333',
},
}),
],
providers: [AppService],
})
export class AppModule {}
3. Call sendSms to send your sms:
import { Injectable } from '@nestjs/common';
import { SmsSenderService } from '@pixelplex/sms-service';
@Injectable()
export class AppService {
constructor(private readonly smsService: SmsSenderService) {
}
async onModuleInit() {
this.smsService.sendSms('+375297775544', './path', { name: 'Афанасий' });
}
}
In the example below we'll send sms to +375297775544 with handlebars path ./path.
{name: 'Афанасий'} is the object with data which will used as payload data during processing your handlebars template.
FAQs
Sms service
We found that @pixelplex/sms-service 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.