Lastly, after learning the best practices that we need to create a jQuery plugin, let's say something about the naming conventions and where to publish your new and shiny plugin.
As you have probably already seen, most jQuery plugins use the following naming convention: jQuery-myPluginName for their project sites and repositories and store their implementations in a file named
jquery.mypluginname.js. After settling on some prospective names for your plugin, take a moment and search the web to verify that there is no one else with the same project name. The jQuery documentation suggests searching for plugins on NPM and refining your results by using the
jquery-plugin keyword. This is obviously the best way to publish your plugin ...