Gathering detailed insights and metrics for node-lts-notifier
Gathering detailed insights and metrics for node-lts-notifier
Gathering detailed insights and metrics for node-lts-notifier
Gathering detailed insights and metrics for node-lts-notifier
A CLI tool that checks the node.js RSS feed and sends a notification mail whenver it detects a new LTS version.
npm install node-lts-notifier
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
3 Stars
46 Commits
2 Watchers
26 Branches
2 Contributors
Updated on Jul 03, 2023
Latest Version
0.4.1
Package Id
node-lts-notifier@0.4.1
Unpacked Size
11.77 kB
Size
4.80 kB
File Count
9
NPM Version
6.4.1
Node Version
8.9.4
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
A CLI tool that checks the node.js RSS feed and sends a notification mail whenver it detects a new LTS version.
The tool is intended to be run by a schedueler such as a cron-task or a jenkins job.
Uses the nodemailer
npm package, and requires to be configured with an SMTP server.
npm i node-lts-notifier -g
0.4.0
:Installing node-lts-notifier
using -g
adds an additional command to your machine:
node-lts-notif
Run it from your shell or from your favorite schedueler.
0.4.0
Once ran, it expects a configuration file, and will terminate with an error and a friendly
message if this file is not found, or if it cannot be parsed as a valid yaml
.
e.g:
ERROR: Cannot open configuration file
tried path:
/home/centos/.lts-notif.yaml
effecting env-vars:
- LTS_NOTIF_FILE - path to the yaml file
- LTS_NOTIF_HOME - when LTS_NOTIF_FILE is unset, may indicate location of a .lts-notif.yaml file
- HOME/HOMEPATH - when LTS_NOTIF_HOME is unset, .lts-notif.yaml is searched in user's home directory
error:
ENOENT: no such file or directory, open '/home/centos/.lts-notif.yaml'
If you provided a full path usign LTS_NOTIF_FILE
or you provided the path to the directory a .lts-notif.yaml
is found using LTS_NOTIF_HOME
, or you have placed it in your home directory -
the file it's looking for should look like the following example:
message:
to:
- name: Osher E.
address: onetanany@mycooldomain.com
from:
- name: Node LTS
address: noreply@mycooldomain.com
nodemailer:
type: smtp
options:
host: mailgw.mycooldomain.com
tls:
rejectUnauthorized: false
reported:
NOTES:
nodemailer
smtp configuration of a relay server.
However - you can pass in nodemailer.options
any valid nodemailer
configuration.
version 0.4.0
supports just smtp
setups - because they do not require any processing and can be passed as is to nodemailer
.
Future versions will add gmail
, aws
, etc.
Having said that - nodemailer
's smtp
setup support quite a lot :)reported
section must be in the end of the file and the file must end with an empty line.
The code appends a line as a string array-item to this file for each reported LTS version.
It does so in order to remember what it has already reported before.0.4.0
:Run the node-lts-notif
from your shell or from your favorite schedueler.
0.1.2
:This initial version implements only the core module, without the bin
file to wrap it in a mature CLI - this wrap will come in the future, as my free time allows it.
The way I run it now is using a Jenkins job, where the command is in the following spirit (domain and emails replaced with example.com
):
node -e "require('node-lts-notifier/lib')({reportFrom: 'Node LTS Notifier<no-reply@example.com>', reportTo: ['devteam@example.com','opsteam@example.com'], smtp: { host: 'mailgw.example.com', tls: { rejectUnauthorized: false }}}).then(console.log);"
Mind the smtp
field in the passed options.
This example is the simplest - it uses a relay smtp in the local LAN.
However - this smtp
object is currently passed as is to nodemailer
- so you may pass whatever you need, including creds.
The only nodemailer
config that is not trivial is aws transport
- which will be dealt in the future.
0.4.0
experimental:
You can provide a node.js module to handle message formatting by providing in your configuration a customFormatter
key.
module
- a path to the module.module
property.If the loaded module exports an .init(conf) method - it's being passed the customFormatter
section,
and the returned value is used as the custom formatter.
If not - the returned value of the required module is passed as the custom formatter as is.
The value is overriding the built-in formatter, and may override:
subject({title}):String
- format your own subjectbody({title, pubDate, link, description}):String
- format your own body from the info in feedmessage(feed, msgDefaults): message
- overriding this method negates the previous two.
it should return a valid nodemailer
message object.
The default returns:
from
and to
from msgDefaults
- which is basically, the message
section from the config,subject
, and html
as formatted by the previous two APIs.No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 8/9 approved changesets -- score normalized to 8
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
18 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More