Node.js script to check the status of my server pages.
https://kevin-mok.com/server/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kevin Mok
34bc13b5fc
|
7 months ago | |
---|---|---|
.gitignore | 4 years ago | |
README.md | 5 years ago | |
package-lock.json | 5 years ago | |
package.json | 5 years ago | |
server-pages.csv | 7 months ago | |
server-pages.service | 5 years ago | |
server-pages.timer | 5 years ago | |
server-status.js | 7 months ago |
README.md
Server Pages
Converts a CSV containing information about my server pages into a JSON containing information about the pages' status, update time and server uptime. Created for use on my personal website's server information page.
Sample Output
Running node server-status.js
(after npm i
) would produce the
following output:
{
"sites": [
{
"shortUrl": "kevin-mok.com",
"url": "https://kevin-mok.com",
"siteTitle": " Kevin Mok ",
"description": "Personal site (this site).",
"repo": "Kevin-Mok/my-site",
"repoUrl": "https://git.kevin-mok.com/Kevin-Mok/my-site",
"status": "up"
},
...
],
"updateTime": 1569209941343,
"upSince": "2019-09-22 19:30:10"
}
Built With
- csvtojson
- url-metadata - Fetch pages for their titles.