Should I encapsulate my javascript library?
<p>I have about 600 lines of javascript that performs ajax calls, dom manipulation, test processing, and other things.</p>

<p>I want to make it a library that others can use.</p>

<p>What are the steps to doing this?  </p>

<p>My first thought was to encapsulate the entire library in the module pattern.  Someone suggested this earlier to help with a www.jshint.com issue.</p>

<p>But I thought it might be a good idea in general.</p>

<p>Should I encapsulate my entire library?</p>

<ul>
<li>Should I use the module pattern?</li>
</ul>
