![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
app-watcher
Advanced tools
A simple serverless program to watch your application. If your application gets down, module send email notification
A simple node module which acts as a serverless program to monitor your application status.
**It will send notification, once your application status changes(UP or DOWN)
Using npm:
$ npm i -g npm
$ npm i --save app-watcher
Init Method:
watcher.start(config<object>);
Config object should contains following properties
Key | Type | Optional | Description |
---|---|---|---|
String | false | Email id for sending notification. Email id should be gmail account id. | |
pass | String | false | Password of gmail account. |
to | Array[String] or String | false | Here you add your notification receivers list |
appUrl | String | false | Application url checking status about application |
emailContent | Object | true | This is a optional parameter. You can change email content. |
emailContent is a optional parameter, it has two attributes
success {subject (String), body (String or HTMLString)}
failure {subject (String), body (String or HTMLString)}
key | Type | Optional | Description | default values |
---|---|---|---|---|
emailContent.success.subject | String | true | Optional parameter. You can add you success email subject | App Status - Started |
emailContent.success.body | String or HTML String | true | Optional parameter. You can add you success email body | Your application started at Mon Mar 01 2018 16:50:02 GMT+0530 (IST) |
emailContent.failure.subject | String | true | Optional parameter. You can add you failure email subject | App Status - Terminated |
emailContent.success.body | String | true | Optional parameter. You can add you failure email body | Your application terminated due to [Reason] |
We are using node mailer for sending emails. So you can add multible to email ids
Turn on gmail less secure option for sending emails through nodemailer. https://nodemailer.com/usage/using-gmail/
watcher.js
var watcher = require("app-watcher");
//default method
watcher.start({
from: "*****@gmail.com",
pass: "***********",
to: ["****@gmail.com", "****@hotmail.com", "*****@domain.com"],
appUrl: "http://application.com/"
});
(or)
watcher.start({
from: "*****@gmail.com",
pass: "***********",
to: ["****@gmail.com", "****@hotmail.com", "*****@domain.com"],
appUrl: "http://application.com/",
emailContent: { //optional parameter
success: {
subject: "",
body: ""
},
failure: {
subject: "",
body: ""
}
}
});
$ node watcher.js;
FAQs
A simple serverless program to watch your application. If your application gets down, module send email notification
The npm package app-watcher receives a total of 2 weekly downloads. As such, app-watcher popularity was classified as not popular.
We found that app-watcher demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.