
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
app-notify
Advanced tools
Send SMS and email notifications from within your node.js app
Send an email message:
//setup smtp server
var smtp = {
host: xxx,
user: user,
pass: pass,
port: port
};
//setup email headers
var email = {
to: user@example.com,
from: sender@example.com'
};
var notify = require('app-notify');
//set your configuration
notify.cfg.email = email;
notify.cfg.smtp = smtp;
//send an email
notify.email({
subject: 'This is a test',
message: 'Hello world!'
})
.then(function(data){
console.log(data);
})
.catch(function(err){
console.error(err);
});
Send an SMS message
//setup sms configuration
var sms = {
sid: twilio-sid-id,
auth: twilio-auth-id,
to: xxx-xxx-xxxx, //recipient
from: yyy-yyy-yyyy //your twilio assigned phone number
};
var notify = require('app-notify');
//set your configuration
notify.cfg.sms = sms;
notify.sms({
message: 'Hello world'
})
.then(function(data){
console.log(data);
})
.catch(function(err){
console.error(err);
});
Send to whichever services we have enabled (both sms and email):
var notify = require('app-notify');
//set your configuration
notify.cfg.email = email;
notify.cfg.smtp = smtp;
notify.cfg.sms = sms;
//sends both
notify.send({
subject: 'This is a test',
message: 'Hello world'
});
notify.cfg.email.disabled = true;
//sends only sms
notify.send({
message: 'Hello world',
});
app-notify can be used with callbacks too!
gulp test
FAQs
Send SMS and email notifications from within your node.js app
The npm package app-notify receives a total of 1 weekly downloads. As such, app-notify popularity was classified as not popular.
We found that app-notify 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.