
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@qrvey/sms
Advanced tools
 
@qrvey/sms is a lightweight and reliable library to send manage sms messages. It supports different clients such SNS (AWS), ACS (Azure), Twilio, and Vonage.
You can install the @qrvey/sms package via npm. Run the following command in your terminal:
npm install @qrvey/sms
This package has the following peer dependencies:
@aws-sdk/client-sns
(v3.x) for interacting with AWS SNS.@azure/communication-sms
(v1.x) for interacting with Azure Communication Services.@vonage/server-sdk
(v3.x) and @vonage/auth
(v1.x) for interacting with Vonage.twilio
(v5.x) for interacting with Twilio.To work properly, the package need some env variables. To set the sms provider, you must set the SMS_PROVIDER
env variable with one of these values:
AWS
AZURE
TWILIO
VONAGE
In case the SMS_PROVIDER
env variable is set with an unknown value, you will get a UnknownProvider
error. Depending on the provider you must set some variables:
If you set SMS_PROVIDER = AWS
, the following env variables are required:
SMS_PROVIDER_USERNAME
which is AWS_ACCESS_KEY_ID
in aws context.SMS_PROVIDER_PASSWORD
which is AWS_SECRET_ACCESS_KEY
in aws context.SMS_PROVIDER_REGION
which is AWS_REGION
in aws context.If you set SMS_PROVIDER = AZURE
, the following env variables are required:
SMS_PROVIDER_USERNAME
which is resource-name
in azure connectionString
context.SMS_PROVIDER_PASSWORD
which is access-key
in azure connectionString
context.SMS_PROVIDER_FROM_NUMBER
which is the ACS-registered number in azure context. This must be in E.164 format, example: "+123456789"Note: The azure connectionString
for Azure Communication Services
looks like this: endpoint=https://<resource-name>.communication.azure.com/;accesskey=<access-key>
.
If you set SMS_PROVIDER = TWILIO
, the following env variables are required:
SMS_PROVIDER_USERNAME
which is TWILIO_ACCOUNT_SID
in twilio context.SMS_PROVIDER_PASSWORD
which is TWILIO_AUTH_TOKEN
in twilio context.If you set SMS_PROVIDER = VONAGE
, the following env variables are required:
SMS_PROVIDER_USERNAME
which is VONAGE_API_KEY
in vonage context.SMS_PROVIDER_PASSWORD
which is VONAGE_API_SECRET
in vonage context.SMS_PROVIDER_FROM_NUMBER
which can be one of the next:
send: (phones: string[], message: string) => Promise<SendResult>;
const phones: string[] = [
"+123456789",
"+9876543210"
];
const message = "Hello world!";
const smsSenderService = new SMSSenderService();
await smsSenderService.send(phones, message);
FAQs
 
We found that @qrvey/sms demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 14 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.