Size of components in a JavaScript library?
<p>I have my JavaScript organized into modules.</p>

<p>In some places there is a lot of different ways I could organize the code to get a certain size.</p>

<p>This question is not intended to create opinions or speculation.</p>

<p>I just want to organize my code well.  If there is not an optimal size, is there an average size of well written code?</p>

<p>Here is link to a study about this by <a href="http://dl.acm.org/citation.cfm?id=567176.567181" rel="nofollow">Columbia University</a> posted on this similar question <a href="http://stackoverflow.com/questions/840092/whats-the-optimum-size-for-a-class-file/840102#840102">here</a></p>

<blockquote>
  <p>enough code to do the job</p>
</blockquote>

<p>is the top answer in the similar question, but if you believe the egg came first then what is the average size of a well written component ( the egg ) in JavaScript?</p>
