{"id":19999684,"url":"https://github.com/novicell/novicell-helpers","last_synced_at":"2025-10-16T06:57:44.419Z","repository":{"id":65464383,"uuid":"170476135","full_name":"Novicell/novicell-helpers","owner":"Novicell","description":"Reusable JS Helpers that are frequently used by Novicell","archived":false,"fork":false,"pushed_at":"2019-03-08T13:54:47.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-12T22:46:51.696Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Novicell.png","metadata":{"files":{"readme":"README.md","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":"2019-02-13T09:08:48.000Z","updated_at":"2019-03-08T13:54:49.000Z","dependencies_parsed_at":"2023-01-24T17:05:14.405Z","dependency_job_id":null,"html_url":"https://github.com/Novicell/novicell-helpers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Novicell%2Fnovicell-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Novicell%2Fnovicell-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Novicell%2Fnovicell-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Novicell%2Fnovicell-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Novicell","download_url":"https://codeload.github.com/Novicell/novicell-helpers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241439484,"owners_count":19963095,"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":"2024-11-13T05:12:30.372Z","updated_at":"2025-10-16T06:57:39.384Z","avatar_url":"https://github.com/Novicell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n\n# Novicell Helpers\n**Reusable JS Utility Helpers that are frequently used by Novicell**\n\n## Usage\n\nWritten in pure Vanilla JS, it has *no dependencies*. It's easy to use with novicell-front end setup (or any es6 compatible build setup).\n\n### Install with npm\n\n```bash\nnpm install novicell-helpers\n```\n\n## Setup\n\nUsing tree shaking concept, import the needed function into your JS:\n\n**JS**\n```javascript\nimport { helperName } from 'novicell-helpers'\n```\n\n## Example\n\n```javascript\n\nimport { toggleClass } from 'novicell-helpers'\n\nconst button = document.querySelector('.button');\nconst siteNavigation = document.querySelector('.navigation');\n\nbutton.addEventListener('click', function() {\n    toggleClass(siteNavigation, 'toggle-me');\n});\n\n```\n\n## Options\n```javascript\n\nbuttonsWithLink();\nfindAncestor(element, className); // finds ancestor\ntoggleClass(el, className); // toggles class forth and back\nhasClass(element, className); // checks element has class\nisVisible(element); // returns a bool depending if element is visible in the viewport\naccordionAnimate(element) // Animation of any height closing/opening subelement. Second optional argument is the opening list class, by default it's js-accordion\n\n```\n[accordionAnimate Codepen](https://codepen.io/ankeris/pen/RvBoqK)\n\n## Contribution\n\nLooking to contribute something? Here's how you can help. Please take a moment to review our [contribution guidelines](https://github.com/Novicell/novicell-frontend/wiki/Contribution-guidelines) in order to make the contribution process easy and effective for everyone involved.\n\n## License\n\nThe Novicell Frontend is licensed under the MIT license. (http://opensource.org/licenses/MIT)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovicell%2Fnovicell-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnovicell%2Fnovicell-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovicell%2Fnovicell-helpers/lists"}