Why use 'lib' vs 'src' directory names in JavaScript? Which is 'standard'?
<p>There are many popular JavaScript libraries and applications on GitHub and some put their raw source code in a <code>/src</code> directory, and others in a <code>/lib</code> directory.</p>
<p>I'm leaning towards the developers having done this depending on which languages they were taught growing up. So I see a lot of JavaScript developers use <code>/lib</code> (who also normally end up putting their packaged JS into a <code>/bin</code> directory). Meanwhile I often observe that those who use <code>/src</code> output their packaged JS into a <code>/dist</code> folder instead.</p>
<p><strong>What is considered the standard pattern for JavaScript, <code>src</code> or <code>lib</code>.</strong> Maybe there isn't a right or wrong answer at all.</p>