O'Reilly logo

jQuery Design Patterns by Thodoris Greasidis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Choosing a name

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required