node-lifx icon indicating copy to clipboard operation
node-lifx copied to clipboard

Consider usage with promises

Open MariusRumpf opened this issue 8 years ago • 3 comments

Using promises features like async/await can be used.

MariusRumpf avatar Nov 24 '16 10:11 MariusRumpf

I am looking for this... I am finding it very difficult to use without promises... I am using feathersJS as my framework (which is awesome) but this lib can't / will not play nice with feathers.

MarcGodard avatar May 17 '18 18:05 MarcGodard

@MarcGodard I'm afraid this won't happening any time soon. I have three pull requests in queue from October, things I've discussed briefly with @MariusRumpf. At least I won't do further development before coding using modern JS syntax is possible. If you need promises you could try if https://github.com/futomi/node-lifx-lan would be suitable?

ristomatti avatar May 17 '18 18:05 ristomatti

@ristomatti thanks, I will check out that lib.

I managed to make it work with feathersJS but it is hacky... maybe this lib will work better, thanks.

If you need help making it ES6 / ES7 version, let me know.

MarcGodard avatar May 17 '18 19:05 MarcGodard