title: How can I use node.js buffer library in client side javascript
body: <p>I would like to use buffer library (in order handle binary data) in my website. here is my use case:</p>
  
  <pre><code>const privateKey = Buffer.from('&lt;User's private key here&gt;', 'hex');
  </code></pre>
  
  <p>buffer works fine in node.js without any additional npm module or script. but somehow,it is not working in web browser.it is showing an error</p>
  
  <blockquote>
    <p>uncaught refernce error: buffer is not defined</p>
  </blockquote>
  
  <p>I though we need to add library script file in our html file. please help me to fix this?</p>