Node.js script to check the status of my server pages.
https://kevin-mok.com/server/
Du kannst nicht mehr als 25 Themen auswählen
Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Kevin Mok
92df36760b
|
vor 5 Jahren | |
---|---|---|
.gitignore | vor 5 Jahren | |
README.md | vor 5 Jahren | |
package-lock.json | vor 5 Jahren | |
package.json | vor 5 Jahren | |
server-pages.csv | vor 5 Jahren | |
server-pages.service | vor 5 Jahren | |
server-pages.timer | vor 5 Jahren | |
server-status.js | vor 5 Jahren |
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.