I have about 600 lines of javascript that performs ajax calls, dom manipulation, test processing, and other things.
I want to make it a library that others can use.
What are the steps to doing this?
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.
But I thought it might be a good idea in general.
Should I encapsulate my entire library?
- Should I use the module pattern?