title: Fork a child process and inject dependency
body: <p>I currently have an operation in a module that is blocking, so I'm looking at making this into a child process that I fork instead.</p>
  
  <p>If I want to do that, then I of course need to modify the architecture of my module. The module requires that a dependency is injected by calling the module as a function, passing in the dependency, like so:</p>
  
  <pre><code>var dependency = { name: "Bob" }
  require('worker')(dependency)
  </code></pre>
  
  <p>Then in my <code>worker</code> module:</p>
  
  <pre><code>module.exports = function (dependency) {
    // Outputs { name: "Bob" }
    console.log(dependency)
  }
  </code></pre>
  
  <p>How can I turn this example into a child process being forked?</p>