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

Using Buffer is deprecated

Open Sawtaytoes opened this issue 6 years ago • 0 comments

In newer versions of Node.js, using new Buffer is now deprecated. https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/

Instead, you should use new Buffer.alloc(size) or new Buffer.from('c469ea095c6adf13', 'hex'). Changing it might cause compatibility issues in older versions of Node.js though. You can always write around it, but you could also upgrade the minimum version.

Sawtaytoes avatar Jun 06 '19 12:06 Sawtaytoes