{"id":29027418,"url":"https://github.com/cahnory/jquery.boilerplate","last_synced_at":"2025-06-26T06:05:35.496Z","repository":{"id":1781355,"uuid":"2704628","full_name":"cahnory/jQuery.boilerplate","owner":"cahnory","description":"A jQuery plugin boilerplate","archived":false,"fork":false,"pushed_at":"2012-03-30T13:37:29.000Z","size":96,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-11T13:49:39.294Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cahnory.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-03T19:43:35.000Z","updated_at":"2015-05-15T01:11:42.000Z","dependencies_parsed_at":"2022-09-07T15:21:08.108Z","dependency_job_id":null,"html_url":"https://github.com/cahnory/jQuery.boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/cahnory/jQuery.boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cahnory%2FjQuery.boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cahnory%2FjQuery.boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cahnory%2FjQuery.boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cahnory%2FjQuery.boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cahnory","download_url":"https://codeload.github.com/cahnory/jQuery.boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cahnory%2FjQuery.boilerplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262010860,"owners_count":23244414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-26T06:05:34.795Z","updated_at":"2025-06-26T06:05:35.473Z","avatar_url":"https://github.com/cahnory.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#jQuery.boilerplate\n\nA simple jQuery plugin boilerplate\n\n##Private vars\n\n+ **instance**: the plugin instance, one per element.\n+ **node**: the DOM element.\n+ **element**: the jquery element.\n+ **settings**: the plugin settings\n\n##Static vars\n\n+ **pluginName**: the name of your plugin. Used in different places in the boilerplate.\n+ **plugin**: the plugin object.\n\n##Public methods\n\n###How to call them ?\n\n    $('selector').pluginName('methodName' [, argument…]);\n\n###Are they chainables ?\nYes but, if a method is returning something (!== undefined)\nthe loop on matched elements will be break, the value will be returned, and the chain will break.\n\n###What happened if a method is called before the plugin was initialized ?\nThe plugin is initialized with default settings and the function is then called.\n\n###Does the boilerplate has predefined methods ?\nYes, there are four predefined methods :\n\n+ **settings**: return a copy of the settings object.\n+ **getText**: return translated text.\n\n##Private methods\n\n###How to call them ?\nThey are in the plugin scope so you call them like any javascript function.\n\n###Does the boilerplate has predefined private methods ?\nYes, there are two :\n\n+ **init**: directly called on plugin instantiation. You are free to put the code to process on instantiation in it.\n+ **getText**: return translated text.\n\n##Translations\nThe plugin store translations in the plugin.langs object. An option value \"lang\" is used to defined which language to use for an instance.\nYou get the translate text using the getText method.\n\n##Events\nThe plugin now use default jQuery method but store special events name in the plugin.events object.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcahnory%2Fjquery.boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcahnory%2Fjquery.boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcahnory%2Fjquery.boilerplate/lists"}