pinestc

The pinest nodejs client

Usage no npm install needed!

<script type="module">
  import pinestc from 'https://cdn.skypack.dev/pinestc';
</script>

README

pinestc

The pinest nodejs client

Usage

const {Client} = require('..');

(async () => {
  const client = await Client.connect();
  client.on('button', notification => {
    console.log(notification);
  });
  const feature = client.feature('ledrgb');
  if (!feature) {
    throw new Error('no feature ledrgb');
  }
  await feature.remcall('fadeout', ['0000FF']);
  
  // close if no other process
  // client.close();
})();