smssms
v1.1.2
Published
A messenger
Readme
SMSSMS
This module named smssms is very useful in sending messages to many people at once and sending customized messages. This module is used in Note JSP or the module is currently available in Node JS. Many modules are also available in different formats. Will be available in programming languages.
Thanks To
However, this module is based on another module named Twilio.
Installation
Initialize Your - project with npm
npm initInstall my-project with npm
npm install smssmsAdd the type of dependency
{
"name": "sms",
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module", <----------------
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"smssms": "^1.1.0"
}
}
create a cjs file in your project
echo> sendSMS.js
codes of sendSMS.cjs look like
const client = require("twilio")('Add You Twilio Sid' , 'Add Your Twilio Auth Token');
const sendSMS = async (body) => {
let msgOptions = {
from: 'Contact Number Provided By Twilio ',
to: 'Enter the number where you want to send sms',
body,
};
try {
const messege = await client.messages.create(msgOptions);
console.log(messege)
}catch(err){
console.log(err)
}
}
sendSMS("Your Sms Content Goes There")
Finally Your Project Is Ready to go
node sendSMS.jsLicense
Add badges are like:
[
Features
- You Can send messages on many number at same time
🚀 About Me
Damodar Tiwari (NSTI Patna)
