title: Base58 javascript implementation
body: <p>I am using IPFS-multihash method to store IPFS hash in smart contracts.
  For that I need to decode base58 format:</p>
  
  <pre><code>QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4
  </code></pre>
  
  <p>to binary(as hex):</p>
  
  <pre><code>1220b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9
  </code></pre>
  
  <p>But I am unable to use bs58 module in browser (I tried using Browserify). Can you tell me the javascript implementation for decoding and encoding in base58 so that I can implement the above method without using node_modules?
  Or can you tell how exactly can I use Browserify to use a node module step-by-step? </p>
  
  <p>After running the first command 'bs58' folder is created in 'node_modules' folder.....there is no lib folder. Can you guide me with the exact commands I must use?</p>
  
  <pre><code>npm install --save bs58
  
  npm install -g browserify
  
  browserify &lt; lib/bs58.js &gt; lib/bs85.bundle.js
  </code></pre>
  
  <p>My file structure is somewhat like this:</p>
  
  <pre><code>-node_modules
  -src
    |___index.html
    |___js
        |____app.js
  </code></pre>