title: Using node module in angularjs?
body: <p>What's the best practice for using <em>external</em> code, e.g. code found in node modules, in angular? </p>
  
  <p>I'd like to use this <a href="https://www.npmjs.com/package/positionsizingcalculator" rel="noreferrer">https://www.npmjs.com/package/positionsizingcalculator</a> node module in my angular app. I've created an angular service intended to wrap the node module, and now I want to make the service use the node module.</p>
  
  <pre><code>'use strict';
  
  angular.module('angularcalculator')
    .service('MyService', function () {
      this.calculate = function () {
        return {
          //I want to call the node module here, whats the best practice?
        };
      }
    });
  </code></pre>