service-status-data
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -6,6 +6,5 @@ { | ||
"name": "service-status-data", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Endpoints for services that have status pages", | ||
"main": "", | ||
"devDependencies": {}, | ||
"main": "index.js", | ||
"scripts": { | ||
@@ -23,3 +22,4 @@ "test": "node validate.js" | ||
}, | ||
"type": "module", | ||
"homepage": "https://github.com/andymckay/service-status-data#readme" | ||
} |
@@ -31,7 +31,18 @@ A directory of status pages for various companies, the aim is to be able to pulled into other tools and services. | ||
Please add in more if this is useful. | ||
Please add in more if this is useful, more detailed instructions on this will come. | ||
Todo: | ||
* [ ] Figure out what we want to do with the biggies: AWS, GCP and Azure. Their status pages aren't simple. | ||
* [ ] Collect as many as I can, please add in yours. | ||
* [ ] Make some packages so we can pull them into various languages. | ||
## Installation | ||
This data is useful standalone, but can also be used as a JavaScript library. | ||
```bash | ||
npm install service-status-data | ||
``` | ||
And then to use: | ||
```js | ||
import { get, list } from "service-status-data"; | ||
get('github') // Returns the data as a JSON object for GitHub. | ||
list() // Returns a list of services. Each string can be passed to the `get` command. | ||
``` |
@@ -20,2 +20,6 @@ { | ||
}, | ||
"components": { | ||
"type": "array", | ||
"items": {"type": "string"} | ||
}, | ||
"urls": { | ||
@@ -22,0 +26,0 @@ "type": "object", |
{ | ||
"name": "GitHub", | ||
"web": "https://www.githubstatus.com/", | ||
"host": "atlassian" | ||
"host": "atlassian", | ||
"components": [ | ||
"actions", | ||
"codespaces", | ||
"copilot", | ||
"issues", | ||
"packages", | ||
"pages", | ||
"webhooks" | ||
] | ||
} |
@@ -1,4 +0,4 @@ | ||
const fs = require("fs"); | ||
const process = require("process"); | ||
const Validator = require("jsonschema").Validator; | ||
import fs from "fs"; | ||
import process from "process" | ||
import { Validator } from "jsonschema"; | ||
@@ -5,0 +5,0 @@ const schema = JSON.parse(fs.readFileSync("schema.json", "utf8")); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8336
22
176
47
Yes
2