{"id":26827847,"url":"https://github.com/rvanbaalen/hashparser","last_synced_at":"2026-04-02T17:42:29.923Z","repository":{"id":51067425,"uuid":"190435095","full_name":"rvanbaalen/hashparser","owner":"rvanbaalen","description":"Tiny javascript library to get and set (encoded) hash parameters","archived":false,"fork":false,"pushed_at":"2026-03-29T02:43:29.000Z","size":1408,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-29T05:26:29.944Z","etag":null,"topics":["hash","javascript","parser","url","util"],"latest_commit_sha":null,"homepage":"https://robinvanbaalen.nl/hashparser/","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/rvanbaalen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-06-05T17:01:30.000Z","updated_at":"2026-03-29T02:43:22.000Z","dependencies_parsed_at":"2025-04-29T22:59:07.895Z","dependency_job_id":"638ad23b-f807-44af-ad4c-d77a8fc79ab3","html_url":"https://github.com/rvanbaalen/hashparser","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/rvanbaalen/hashparser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvanbaalen%2Fhashparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvanbaalen%2Fhashparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvanbaalen%2Fhashparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvanbaalen%2Fhashparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rvanbaalen","download_url":"https://codeload.github.com/rvanbaalen/hashparser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvanbaalen%2Fhashparser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31312319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["hash","javascript","parser","url","util"],"created_at":"2025-03-30T12:17:31.116Z","updated_at":"2026-04-02T17:42:29.908Z","avatar_url":"https://github.com/rvanbaalen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[\u0026larr; See my other Open Source projects](https://robinvanbaalen.nl)\n\n# @rvanbaalen/hashparser\n![NPM Downloads](https://img.shields.io/npm/d18m/%40rvanbaalen%2Fhashparser)\n![GitHub License](https://img.shields.io/github/license/rvanbaalen/hashparser)\n![NPM Version](https://img.shields.io/npm/v/%40rvanbaalen%2Fhashparser)\n![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/rvanbaalen/hashparser/npm-run-tests.yml?label=run%20tests)\n\n## Description\n\nTiny javascript library to get and set (encoded) query parameters in the URL hash.\n\n## Installation\n\n```bash\nnpm install @rvanbaalen/hashparser\n```\n\n## Usage\n\n### Basic usage\n\n```js\nimport { HashParser } from '@rvanbaalen/hashparser';\n\nconst hp = new HashParser();\n\n// Set a paramter in the hash\nhp.set('foo', 'bar'); // example.com#foo=bar\n\n// Get a parameter from the hash\nhp.get('foo'); // bar\n\n// Remove a parameter from the hash\nhp.remove('foo'); // example.com#\n\n```\n\n### Encoded values\n\n```js\nimport {HashParser} from '@rvanbaalen/hashparser';\n\n// Two ways to use encoded parameters\n\n// 1. Via the static getter\n\n// Set a paramter in the hash\nHashParser.encoded.set('foo', 'bar'); // example.com#foo=ImJhciI%3D\n\n// Get a parameter from the hash\nHashParser.encoded.get('foo'); // \"bar\"\n\n// For reference, a default HashParser instance does not decode values\nconst hp = new HashParser();\nhp.get('foo'); // ImJhciI%3D\n\n// 2. Via the instance\nconst hp = new HashParser({encoded: true});\n\nhp.set('foo', 'bar'); // example.com#foo=ImJhciI%3D\nhp.get('foo'); // \"bar\"\n```\n\n### Options\n\nThe following options can be passed to a new HashParser instance:\n\n```js\n{\n  encoded: false, // default value is false, set to true to always encode values\n  sync: true // default value is true, this will listen for hashchange events on the window object and update the internal dataset.\n}\n```\n\n## Building\n\nCompile the source files to the `dist` folder:\n\n```bash\nnpm run build\n```\n\nUpon each commit, `npm run build` is automatically \nexecuted and `./dist/hashparser.min.js` is automatically added pre-commit.\n\n## Contributing\n\nContributions are welcome! Please feel free to [open an issue](https://github.com/rvanbaalen/hashparser/issues) or [submit a pull request](https://github.com/rvanbaalen/hashparser/pulls).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/rvanbaalen/hashparser/blob/main/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvanbaalen%2Fhashparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frvanbaalen%2Fhashparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvanbaalen%2Fhashparser/lists"}