title: Are all functions in the entry script for node js?
body: <p>The code I am looking at is quite simple. It requires a library and uses one of the functions:</p>
  
  <pre><code>const bitcoin = require('bcashjs-lib');
  .
  .
  .
  const hdPath = bitcoin.hdPath(keychain);
  </code></pre>
  
  <p>Here's an example of it in use elsewhere:</p>
  
  <p><a href="https://github.com/BitGo/BitGoJS/blob/30f7b0850e65a0cec91ad911e76a935e07c363a5/src/v2/coins/bch.js#L40" rel="nofollow noreferrer">https://github.com/BitGo/BitGoJS/blob/30f7b0850e65a0cec91ad911e76a935e07c363a5/src/v2/coins/bch.js#L40</a></p>
  
  <p>Here's the version they're using:</p>
  
  <p><a href="https://github.com/BitGo/BitGoJS/blob/30f7b0850e65a0cec91ad911e76a935e07c363a5/package.json#L74" rel="nofollow noreferrer">https://github.com/BitGo/BitGoJS/blob/30f7b0850e65a0cec91ad911e76a935e07c363a5/package.json#L74</a></p>
  
  <p>However, when I do the same on my own script the function is not defined. And sure enough, the library doesn't have it in the entry file:</p>
  
  <p><a href="https://github.com/BitGo/bcashjs-lib/blob/master/src/index.js" rel="nofollow noreferrer">https://github.com/BitGo/bcashjs-lib/blob/master/src/index.js</a></p>
  
  <p>Any tips would be great.</p>