{"id":13508988,"url":"https://github.com/bevacqua/hash-sum","last_synced_at":"2025-05-15T15:04:14.503Z","repository":{"id":51805304,"uuid":"39091372","full_name":"bevacqua/hash-sum","owner":"bevacqua","description":":confetti_ball: Blazing fast unique hash generator","archived":false,"fork":false,"pushed_at":"2022-11-01T20:17:34.000Z","size":30,"stargazers_count":295,"open_issues_count":7,"forks_count":27,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-05-17T17:43:00.072Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ponyfoo.com","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/bevacqua.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.markdown","contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-14T17:55:54.000Z","updated_at":"2024-05-08T05:01:36.000Z","dependencies_parsed_at":"2023-01-21T07:01:59.138Z","dependency_job_id":null,"html_url":"https://github.com/bevacqua/hash-sum","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bevacqua%2Fhash-sum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bevacqua%2Fhash-sum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bevacqua%2Fhash-sum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bevacqua%2Fhash-sum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bevacqua","download_url":"https://codeload.github.com/bevacqua/hash-sum/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247721898,"owners_count":20985084,"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-08-01T02:01:01.438Z","updated_at":"2025-04-07T20:09:30.750Z","avatar_url":"https://github.com/bevacqua.png","language":"JavaScript","readme":"# hash-sum\n\n\u003e blazing fast unique hash generator\n\n# install\n\n```shell\nnpm i hash-sum -S\n```\n\n# features\n\n- no dependencies\n- minimal footprint\n- works in all of node.js, io.js, and the browser\n- hashes functions based on their source code\n- produces different hashes for different object types\n- support for circular references in objects\n- ignores property assignment order\n\n# `sum(value)`\n\nyields a four-byte hexadecimal hash based off of `value`.\n\n```\n# creates unique hashes\n00a34759 from: [ 0, 1, 2, 3 ]\na8996f0c from: { '0': 0, '1': 1, '2': 2, '3': 3 }\n5b4c2116 from: { '0': 0, '1': 1, '2': 2, '3': 3, length: 4 }\n2c937c45 from: { url: 12 }\n31d55010 from: { headers: 12 }\n2d2e11bc from: { headers: 122 }\nec99d958 from: { headers: '122' }\n18c00eee from: { headers: { accept: 'text/plain' } }\n6cb332c8 from: { payload: [ 0, 1, 2, 3 ], headers: [ { a: 'b' } ] }\n12ff55db from: { a: [Function: a] }\n46f806d2 from: { b: [Function: b] }\n0660d9c4 from: { b: [Function: b] }\n6c95fc65 from: function () {}\n2941766e from: function (a) {}\n294f8def from: function (b) {}\n2d9c0cb8 from: function (a) { return a;}\ned5c63fc from: function (a) {return a;}\nbba68bf6 from: ''\n2d27667d from: 'null'\n774b96ed from: 'false'\n2d2a1684 from: 'true'\n8daa1a0c from: '0'\n8daa1a0a from: '1'\ne38f07cc from: 'void 0'\n6037ea1a from: 'undefined'\n9b7df12e from: null\n3c206f76 from: false\n01e34ba8 from: true\n8a8f9624 from: Infinity\n0315bf8f from: -Infinity\n64a48b16 from: NaN\n1a96284a from: 0\n1a96284b from: 1\n29172c1a from: undefined\n59322f29 from: {}\n095b3a22 from: { a: {}, b: {} }\n63be56dd from: { valueOf: [Function: valueOf] }\n63be4f5c from: { valueOf: [Function: valueOf] }\n5d844489 from: []\nba0bfa14 from: 2019-06-28T21:24:31.215Z\n49324d16 from: 2019-06-28T03:00:00.000Z\n434c9188 from: 1988-06-09T03:00:00.000Z\nce1b5e44 from: global\n```\n\n# license\n\nMIT\n","funding_links":[],"categories":["JavaScript","Repository"],"sub_categories":["Crypto"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbevacqua%2Fhash-sum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbevacqua%2Fhash-sum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbevacqua%2Fhash-sum/lists"}