
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
sms4free is a Node.js library that simplifies sending SMS messages and getting SMS balance using the sms4free.co.il service.
You can install this package using npm:
npm install sms4free
To use sms4free, you need to require and create an instance of the class with your sms4free.co.il API credentials. Then, you can call its methods to send SMS messages and get the SMS balance.
const SMSProvider = require('sms4free');
const smsProvider = new SMSProvider({
key: "your-api-key",
user: "your-username",
pass: "your-password",
sender: "your-sender-name"
});
// Send an SMS
smsProvider.sendSMS('1234567890', 'Hello, World!')
.then(response => console.log(`SMS sent with response code: ${response}`))
.catch(error => console.error(`Error: ${error.message}`));
// Get SMS balance
smsProvider.getBalance()
.then(balance => console.log(`Current balance: ${balance}`))
.catch(error => console.error(`Error: ${error.message}`));
Or you can use static methods and pass the credentials as last parameter:
const SMSProvider = require('sms4free');
await SMSProvider.sendSMS('1234567890', 'Hello, World!', options)
await SMSProvider.getBalance(options)
sendSMS(phoneNumber, message, throwOnBadResponse)
Sends an SMS message to the specified phone number.
Returns a Promise that resolves with the response code from the API or rejects with an error.
getBalance()
Retrieves the SMS balance for your account.
Returns a Promise that resolves with the balance or rejects with an error.
getErrorMessage(code)
Retrieves the error message for the specified response code.
Can be used when throwOnBadResponse is set to false and you want to handle the error yourself.
Returns a String with the error message for the specified response code.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Send SMS messages from your Node.js application using sms4free.co.il service
We found that sms4free 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.