busylight-cli
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -5,14 +5,25 @@ #! /usr/bin/env node | ||
var command = process.argv[2]; | ||
if (command === "busy") { | ||
light.light("red"); | ||
} | ||
else if (command === "free") { | ||
light.light("green"); | ||
} | ||
else if (command === "police") { | ||
if (command === "police") { | ||
light.blink(["red", "blue"], 150); | ||
} | ||
else { | ||
else if (!command) { | ||
light.blink(["red", "orange", "green", "blue", "purple"], 150); | ||
} | ||
//# sourceMappingURL=busylight-cli.js.map | ||
else { | ||
var color = command; | ||
if (command === "busy") { | ||
color = "red"; | ||
} | ||
else if (command === "free") { | ||
color = "green"; | ||
} | ||
if (process.argv.indexOf("--pulse") > -1) { | ||
light.pulse(color, 500); | ||
} | ||
else if (process.argv.indexOf("--blink") > -1) { | ||
light.blink(color, 500); | ||
} | ||
else { | ||
light.light(color); | ||
} | ||
} |
{ | ||
"name": "busylight-cli", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "CLI for kuando busylight", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
1
35
1576
3
28