Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
kasa-js
Advanced tools
Readme
This package enables sending of sms from your javascript application using Kasa as a service provider.
You can install the package via npm:
npm install kasa-js
Before you can start sending sms you will need to set your api key and default sender ID in your /.env file
You can find your api key here http://kasa.philangie.com/user/sms-api/info
These config files can be changed from the laravel application.
KASA_SMS_SENDER_ID=MyApp
KASA_SMS_API_KEY=YourKeyGoesHere
const Kasa from "kasa-js";
const sms = new Kasa("SenderId", "smsApiKey");
// successful response: {"code":"ok","message":"Successfully Send","balance":58995,"user":"Adinkra Pie"}
// error response: {"code":"102","message":"Authentication Failed"}
sms.send('02XXXXXXXXX', 'Your pie will be ready in 5 mins', timestamp = 'In case you want to schedule',
(callback) => // console.log(callback)
);
sms.withFreshApiKey('API_KEY_GOES_HERE').send('02XXXXXXXX', 'We want to confirm your destination. Adum post office right?', null,
(callback) => // console.log(callback)
);
sms.from('CompanyName').send('02XXXXXXXX', 'Your pie is ready for dispatch.', null,
(callback) => // console.log(callback)
);
// successful response: {"code":"109","message":"Invalid Schedule Time"}
// successful response: {"code":"ok","message":"SMS Scheduled successfully.","balance":58995,"user":"Adinkra Pie"}
const dateTime ='04-05-2020 06:19 PM'; // Must be this format - "d-m-Y h:i A"
sms.schedule(dateTime, '02XXXXXXXX', 'We have arrived at your destination.',
(callback) => // console.log(callback)
)
// successful response: {"balance":58995,"user":"Adinkra Pie","country":"Ghana"}
sms.balance((callback) => console.log(callback));
sms.withFreshApiKey('API_KEY_GOES_HERE')balance(
(callback) => // console.log(callback)
);
If you discover any security related issues, please email nana.elvee@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
FAQs
This package enables sending of sms from your javascript application using http://kasa.philangie.com as a service provider.
The npm package kasa-js receives a total of 0 weekly downloads. As such, kasa-js popularity was classified as not popular.
We found that kasa-js 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.