{"id":21734847,"url":"https://github.com/viivue/easy-hash","last_synced_at":"2026-05-17T03:33:32.416Z","repository":{"id":214009363,"uuid":"678358540","full_name":"viivue/easy-hash","owner":"viivue","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-25T04:40:45.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-12-26T05:30:41.949Z","etag":null,"topics":["easy-collection"],"latest_commit_sha":null,"homepage":"https://viivue.github.io/easy-hash/","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/viivue.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}},"created_at":"2023-08-14T11:19:28.000Z","updated_at":"2023-12-25T04:36:06.000Z","dependencies_parsed_at":"2023-12-25T05:29:34.585Z","dependency_job_id":"40fbeb2c-2184-41c8-9344-c414a3070d6c","html_url":"https://github.com/viivue/easy-hash","commit_stats":null,"previous_names":["viivue/easy-hash"],"tags_count":1,"template":null,"template_full_name":null,"purl":"pkg:github/viivue/easy-hash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viivue%2Feasy-hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viivue%2Feasy-hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viivue%2Feasy-hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viivue%2Feasy-hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viivue","download_url":"https://codeload.github.com/viivue/easy-hash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viivue%2Feasy-hash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266187259,"owners_count":23889949,"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":["easy-collection"],"created_at":"2024-11-26T05:10:53.018Z","updated_at":"2026-05-17T03:33:27.386Z","avatar_url":"https://github.com/viivue.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Easy Hash\n\n[![release](https://badgen.net/github/release/viivue/easy-hash/)](https://github.com/viivue/easy-hash/releases/latest)\n[![Netlify Status](https://api.netlify.com/api/v1/badges/84c6ed49-b3f3-450b-857a-ec904db724b7/deploy-status)](https://app.netlify.com/sites/easy-hash/deploys)\n\n\u003e Demo: https://easy-hash.netlify.app\n\n## Getting started\n\n### CDN\n\n```html\n\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/viivue/easy-hash@0.0.1/dist/easy-hash.min.js\"\u003e\u003c/script\u003e\n```\n\n## Initialize\n\nWe can use this library promptly after import it into your project\n\n## Methods\n\n| Usage                              | Description                                                                                            | \n|------------------------------------|--------------------------------------------------------------------------------------------------------|\n| `EasyHash.add(hash)`               | Add new hash to the URL and replace the current one if any (containing \"#\" or not are both acceptable) |\n| `EasyHash.remove()`                | Remove current hash value                                                                              |\n| `EasyHash.getHash()`               | Get current hash                                                                                       |\n| `EasyHash.on(eventName, callback)` | Assign events                                                                                          |\n\n## Events\n\n| Name       | Description         | \n|------------|---------------------|\n| `\"change\"` | After value changed |\n\n```js\nEasyHash.on('change', () =\u003e {\n    // do something\n})\n// the same as window.addEventListener('hashchange',()=\u003e{})\n```\n\n## Deployment\n\n```shell\n# Run dev server\nnpm run dev\n\n# Build dev site\nnpm run build\n\n# Generate production files\nnpm run prod\n```\n\n## License\n\n[MIT License](https://github.com/viivue/easy-hash/blob/main/LICENSE)\n\nCopyright (c) 2023 ViiVue\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviivue%2Feasy-hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviivue%2Feasy-hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviivue%2Feasy-hash/lists"}