{"id":24080126,"url":"https://github.com/pindlebot/code-sha-256","last_synced_at":"2025-02-27T00:18:32.609Z","repository":{"id":57202171,"uuid":"127077042","full_name":"pindlebot/code-sha-256","owner":"pindlebot","description":null,"archived":false,"fork":false,"pushed_at":"2018-12-29T03:37:05.000Z","size":3,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T11:13:02.083Z","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/pindlebot.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":"2018-03-28T03:14:44.000Z","updated_at":"2018-12-29T03:37:07.000Z","dependencies_parsed_at":"2022-09-17T12:01:01.022Z","dependency_job_id":null,"html_url":"https://github.com/pindlebot/code-sha-256","commit_stats":null,"previous_names":["unshift/code-sha-256"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pindlebot%2Fcode-sha-256","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pindlebot%2Fcode-sha-256/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pindlebot%2Fcode-sha-256/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pindlebot%2Fcode-sha-256/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pindlebot","download_url":"https://codeload.github.com/pindlebot/code-sha-256/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240953731,"owners_count":19884055,"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":"2025-01-09T22:56:07.546Z","updated_at":"2025-02-27T00:18:32.592Z","avatar_url":"https://github.com/pindlebot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## code-sha-256\n\nCompare local to remote sha-256 (for use with AWS Lambda). The use-case it to determine if you should update a function because the function's code has changed.\n\n### Example\n\n```js\n\nconst compareFunctionCode = require('code-sha-256')\nconst config = { region: 'us-east-1' }\nconst params = { \n  FunctionName: 'kitApiLambdaEdge',\n  Qualifier: '1' // optional, default is $LATEST\n}\n\ncompareFunctionCode('index.js', { params, config }).then(shouldUpdate =\u003e {\n  if (shouldUpdate) {\n    // update function code\n  } else {\n    // proceed\n  }\n})\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpindlebot%2Fcode-sha-256","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpindlebot%2Fcode-sha-256","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpindlebot%2Fcode-sha-256/lists"}