title: Node 6 Buffer constructor deprecated, what to use instead?
body: <p><a href="https://nodejs.org/en/blog/release/v6.0.0/" rel="nofollow noreferrer">https://nodejs.org/en/blog/release/v6.0.0/</a></p>
  
  <p>"Existing <code>Buffer()</code> and <code>SlowBuffer()</code> constructors have been deprecated"</p>
  
  <p>I am currently using these to create synthetic cursor values for GraphQL, for example:</p>
  
  <p><code>new Buffer(&lt;cursor&gt;).toString('base64')</code></p>
  
  <p>Now that the <code>Buffer</code> constructor is deprecated, what would be the correct way to do something similar?</p>
  
  <p>Thanks in advance anyone with ideas, I'll dig in on this as well later and post my answer here if I have one.</p>