diff options
| author | Jan Tuomi <jan-sebastian.tuomi@aalto.fi> | 2016-08-14 12:54:54 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan-sebastian.tuomi@aalto.fi> | 2016-08-14 12:54:54 +0300 |
| commit | 17a154cb51a729e043ce555e68ef9ebbe40f14b5 (patch) | |
| tree | 52cd115ab1cc68b899d57e4a35eaa9adf0b84a36 | |
| parent | 766fbef3946d205cce4d61d8a5cd14adf078e5b1 (diff) | |
Add statuscake module
| -rw-r--r-- | index.js | 20 | ||||
| -rw-r--r-- | package.json | 22 |
2 files changed, 42 insertions, 0 deletions
diff --git a/index.js b/index.js new file mode 100644 index 0000000..db229d3 --- /dev/null +++ b/index.js @@ -0,0 +1,20 @@ +var statuscake = require("statuscake"); + +var args = process.argv.slice(2); +if (args.length != 2) { + console.log("Please provide user and key as positional arguments."); + process.exit(1); +} + +var username = args[0]; +var password = args[1]; + +statuscake + .username(username) + .key(password); + +function allTests(err, data) { + console.log(data); +} + +statuscake.tests(allTests); diff --git a/package.json b/package.json new file mode 100644 index 0000000..1220593 --- /dev/null +++ b/package.json @@ -0,0 +1,22 @@ +{ + "name": "radiodiodi-status-display", + "version": "1.0.0", + "description": "statuscake display", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/jantuomi/radiodiodi-status-display.git" + }, + "author": "Jan Tuomi", + "license": "MIT", + "bugs": { + "url": "https://github.com/jantuomi/radiodiodi-status-display/issues" + }, + "homepage": "https://github.com/jantuomi/radiodiodi-status-display#readme", + "dependencies": { + "statuscake": "" + } +} |
