diff options
| -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": "" + } +} |
