2 ms·
> Looks like one of those "utility" modules that get used in a project because there's no proper standard library for node.js No, not really. Buffer is already
by capableweb 6y ago
> Looks like one of those "utility" modules that get used in a project because there's no proper standard library for node.js
No, not really. Buffer is already part of the standard library for nodejs. What this is, is a "safe" variant of the very same buffers, as the previous ones were found unsafe. Although if you're controlling the runtime, there is no need for safe-buffer package anymore, as Buffer from the standard library is now safe. See https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/ https://nodejs.org/en/docs/guides/buffer-constructor-depreca... for all information around nodejs "safe" buffers. Feross' library is mentioned there as well.