Node.js script to check the status of my server pages.
https://kevin-mok.com/server/
Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Kevin Mok
92df36760b
|
il y a 5 ans | |
---|---|---|
.gitignore | il y a 5 ans | |
README.md | il y a 5 ans | |
package-lock.json | il y a 5 ans | |
package.json | il y a 5 ans | |
server-pages.csv | il y a 5 ans | |
server-pages.service | il y a 5 ans | |
server-pages.timer | il y a 5 ans | |
server-status.js | il y a 5 ans |
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.