jerome jerome - 11 months ago 52
Javascript Question

Node 6 Buffer constructor deprecated, what to use instead?


constructors have been deprecated"

I am currently using these to create synthetic cursor values for GraphQL, for example:

new Buffer(<cursor>).toString('base64')

Now that the
constructor is deprecated, what would be the correct way to do something similar?

Thanks in advance anyone with ideas, I'll dig in on this as well later and post my answer here if I have one.

Answer Source