node-wav
node-wav copied to clipboard
Using new Buffer() instead of just Buffer()
From Node 7 onwards you get this message:
DeprecationWarning: Using Buffer without new will soon stop working. Use new Buffer(), or preferably Buffer.from(), Buffer.allocUnsafe() or Buffer.alloc() instead.
Should probably be Buffer.from() but it's only available from Node 5, if that's important.