{"id":19635487,"url":"https://github.com/henrygd/hide-show-scroll","last_synced_at":"2025-07-12T13:33:23.903Z","repository":{"id":57264009,"uuid":"257965130","full_name":"henrygd/hide-show-scroll","owner":"henrygd","description":"enables / disables html scroll without content jumping around. 184 bytes.","archived":false,"fork":false,"pushed_at":"2024-09-27T09:18:16.000Z","size":661,"stargazers_count":5,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-10T11:15:43.812Z","etag":null,"topics":["overflow","scroll"],"latest_commit_sha":null,"homepage":"https://henrygd.me/hide-show-scroll","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/henrygd.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-22T16:58:17.000Z","updated_at":"2024-05-11T20:29:18.000Z","dependencies_parsed_at":"2024-04-23T01:34:44.293Z","dependency_job_id":"149fa9a8-cec3-482d-8275-cf7493ffe2db","html_url":"https://github.com/henrygd/hide-show-scroll","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/henrygd/hide-show-scroll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrygd%2Fhide-show-scroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrygd%2Fhide-show-scroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrygd%2Fhide-show-scroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrygd%2Fhide-show-scroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henrygd","download_url":"https://codeload.github.com/henrygd/hide-show-scroll/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrygd%2Fhide-show-scroll/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265002234,"owners_count":23696075,"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":["overflow","scroll"],"created_at":"2024-11-11T12:25:32.479Z","updated_at":"2025-07-12T13:33:23.877Z","avatar_url":"https://github.com/henrygd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hide-show-scroll [![npm][npm-image]][npm-url] [![File Size][size-image]][cdn-url]\n\n[npm-image]: https://img.shields.io/npm/v/hide-show-scroll.svg?style=flat\n[npm-url]: https://www.npmjs.com/package/hide-show-scroll\n[size-image]: https://img.badgesize.io/henrygd/hide-show-scroll/master/dist/hide-show-scroll.mjs?compression=gzip\n[cdn-url]: https://github.com/henrygd/hide-show-scroll/blob/master/index.js\n\nhttps://henrygd.me/hide-show-scroll\n\nThis won't work if the scrollbar is on an element other than html. May add that option in the future.\n\n## Module Usage\n\n```\n$ npm install hide-show-scroll\n```\n\n```js\nimport { hideScroll, showScroll } from 'hide-show-scroll'\n\n// lock scroll / hide html scrollbar\nhideScroll()\n\n// allow scroll / show html scrollbar\nshowScroll()\n```\n\n## Direct Script Usage\n\n```html\n\u003cscript src=\"hide-show-scroll.min.js\"\u003e\u003c/script\u003e\n```\n\n```js\n// lock scroll / hide html scrollbar\nhideShowScroll.hideScroll()\n\n// allow scroll / show html scrollbar\nhideShowScroll.showScroll()\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenrygd%2Fhide-show-scroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenrygd%2Fhide-show-scroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenrygd%2Fhide-show-scroll/lists"}