UNPKG

nanoleafy-js

Version:

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

25 lines (19 loc) 460 B
'use strict'; const API = require('../index'), util = require('util'); function builder(yargs) {} function handler(argv) { const aurora = new API(); return aurora.animation(argv.name.join(' ')).then(animation => { console.log(util.inspect(animation, { colors: true, depth: 5 })); }); } module.exports = { command : 'animation <name...>', describe: 'get details about the given animation effect', builder, handler };