brianloveswords / buffer-crc32

A pure javascript CRC32 algorithm that plays nice with binary data
MIT License
97 stars 30 forks source link

use `new` with Buffer #15

Closed caesar closed 7 years ago

caesar commented 7 years ago

Fixes DeprecationWarning in Node 7:

(node:84948) DeprecationWarning: Using Buffer without `new` will soon stop working. Use `new Buffer()`, or preferably `Buffer.from()`, `Buffer.allocUnsafe()` or `Buffer.alloc()` instead.

See issue #14.