@stacksjs/scheduler
TypeScript icon, indicating that this package has built-in type declarations

0.64.6 • Public • Published

Stacks SMS

Stacks SMS is driver system for sending SMS messages.

☘️ Features

  • 📦 Send SMS

🤖 Usage

bun install -d @stacksjs/sms

You may now use it in your project:

import * as sms from '@stacksjs/sms'

/* Then choose a driver. E.g for twilio */
const notification = sms.twilio

notification.send(SMSOptions)

interface SMSOptions {
  to: string
  content: string
  from?: string
  attachments?: AttachmentOptions[]
  id?: string
}

Drivers

Drivers are configured with the following environment variables:

Twilio

TWILIO_ACCOUNT_SID=ACtest
TWILIO_AUTH_TOKEN=testtoken
TWILIO_FROM_NUMBER=+112345
TWILIO_TO_NUMBER=+145678

Nexmo

VONAGE_API_KEY=VN123
VONAGE_API_SECRET=testkey
VONAGE_FROM_NUMBER=+112345

Gupshup

GUPSHUP_USER_ID=GU123
GUPSHUP_PASSWORD=password

Plivo

PLIVO_ACCOUNT_ID=PA123
PLIVO_AUTH_TOKEN=testtoken
PLIVO_FROM_NUMBER=+112345

SMS77

SMS77_API_KEY=SA123
SMS77_FROM=from@example.com

SNS

SMS77_API_KEY=SA123
SMS77_FROM=from@example.com

Telnyx

TELNYX_API_KEY=TA123
TELNYX_MESSAGE_PROFILE_ID=testprofileid
TELNYX_FROM=from@example.com

Termii

TERMII_API_KEY=TermA123
TERMII_SENDER=from@example.com

Learn more in the docs.

🧪 Testing

bun test

📈 Changelog

Please see our releases page for more information on what has changed recently.

🚜 Contributing

Please review the Contributing Guide for details.

🏝 Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

Discussions on GitHub

For casual chit-chat with others using this package:

Join the Stacks Discord Server

🙏🏼 Credits

Many thanks to the following core technologies & people who have contributed to this package:

📄 License

The MIT License (MIT). Please see LICENSE for more information.

Made with 💙

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.64.61latest

Version History

VersionDownloads (Last 7 Days)Published
0.64.61
0.64.50
0.64.40
0.64.30
0.64.20
0.64.10
0.64.00
0.63.10
0.63.00
0.62.00
0.61.240
0.61.230
0.61.210
0.61.200
0.61.190
0.61.180
0.61.170
0.61.160
0.61.150
0.61.140
0.61.130
0.61.120
0.61.110
0.61.100
0.61.90
0.61.80
0.61.70
0.61.60
0.61.50
0.61.40
0.61.30
0.61.20
0.61.10
0.61.00
0.59.110
0.59.100
0.59.90
0.59.81
0.59.70
0.59.60
0.59.50
0.59.40
0.59.30
0.59.20
0.59.10
0.58.730
0.58.720
0.58.710
0.58.700
0.58.690
0.58.680
0.58.670
0.58.660
0.58.650
0.58.640
0.58.630
0.58.620
0.58.610
0.58.590
0.58.580
0.58.570
0.58.560
0.58.550
0.58.530
0.58.520
0.58.510
0.58.500
0.58.490
0.58.480
0.58.470
0.58.460
0.58.450
0.58.440
0.58.430
0.58.280
0.58.270
0.58.240
0.58.220
0.58.210
0.58.200
0.58.190
0.57.40
0.57.30
0.57.20
0.56.350
0.56.340
0.56.330
0.56.320
0.56.310
0.56.300
0.56.290
0.56.280
0.56.270
0.56.240
0.56.230
0.56.30
0.53.10
0.52.100
0.52.90
0.52.80
0.52.70
0.52.50
0.52.60
0.52.40
0.52.30
0.52.20
0.52.10
0.52.00

Package Sidebar

Install

npm i @stacksjs/scheduler

Weekly Downloads

2

Version

0.64.6

License

MIT

Unpacked Size

546 kB

Total Files

13

Last publish

Collaborators

  • chrisbreuer