{"id":14108793,"url":"https://github.com/kodie/md5-file","last_synced_at":"2025-05-07T21:28:58.556Z","repository":{"id":16388428,"uuid":"19139100","full_name":"kodie/md5-file","owner":"kodie","description":"return an md5sum of a given file","archived":false,"fork":false,"pushed_at":"2020-04-24T07:05:35.000Z","size":61,"stargazers_count":211,"open_issues_count":2,"forks_count":20,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-17T08:02:49.961Z","etag":null,"topics":["checksum","integrity","md5sum","verification"],"latest_commit_sha":null,"homepage":"https://www.npmjs.org/package/md5-file","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kodie.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-25T08:18:35.000Z","updated_at":"2024-03-21T00:27:58.000Z","dependencies_parsed_at":"2022-09-26T21:12:11.421Z","dependency_job_id":null,"html_url":"https://github.com/kodie/md5-file","commit_stats":null,"previous_names":["roryrjb/md5-file"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodie%2Fmd5-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodie%2Fmd5-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodie%2Fmd5-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodie%2Fmd5-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kodie","download_url":"https://codeload.github.com/kodie/md5-file/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230937718,"owners_count":18303332,"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":["checksum","integrity","md5sum","verification"],"created_at":"2024-08-14T10:01:47.455Z","updated_at":"2024-12-27T09:09:46.226Z","avatar_url":"https://github.com/kodie.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# MD5 file\n\nGet the MD5-sum of a given file, with low memory usage, even on huge files.\n\n## Installation\n\n```sh\nnpm install --save md5-file\n```\n\n## Usage\n\n### As a module\n\n```js\nconst md5File = require('md5-file')\n\n/* Async usage */\nmd5File('LICENSE.md').then((hash) =\u003e {\n  console.log(`The MD5 sum of LICENSE.md is: ${hash}`)\n})\n\n/* Sync usage */\nconst hash = md5File.sync('LICENSE.md')\nconsole.log(`The MD5 sum of LICENSE.md is: ${hash}`)\n```\n\n### As a command line tool\n\n```sh\n$ md5-file LICENSE.md\nad1faf9381e43c471dc381c17a4ee4b6\n```\n\n## API\n\n### `md5File(path: string) =\u003e Promise\u003cstring\u003e`\n\nAsynchronously get the MD5-sum of the file at `path`.\n\nReturns a [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) that will be resolved with a string containing the MD5-sum.\n\n### `md5File.sync(path: string) =\u003e string`\n\nSynchronously get the MD5-sum of the file at `path`.\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodie%2Fmd5-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkodie%2Fmd5-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodie%2Fmd5-file/lists"}