UNPKG

nanoleafy-js

Version:

An API client & command-line tool for the Nanoleaf Aurora light.

25 lines (19 loc) 363 B
'use strict'; const API = require('../index'), chalk = require('chalk'); function builder(yargs) {} function handler(argv) { const aurora = new API(); aurora.off().then(() => { console.log(`Aurora ➜ ${chalk.bold('off')}`); }); } module.exports = { command: 'off', describe: 'turn your Aurora off', builder, handler };