{"id":23821509,"url":"https://github.com/heinst/nodejs-md5","last_synced_at":"2025-09-07T04:31:21.204Z","repository":{"id":65424802,"uuid":"43686444","full_name":"heinst/nodejs-md5","owner":"heinst","description":"A simple node module to give you the md5 of a file or string","archived":false,"fork":false,"pushed_at":"2018-05-14T18:11:29.000Z","size":20,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T22:09:35.428Z","etag":null,"topics":["md5","md5sum","nodejs","nodejs-md5","nodejs-modules","npm","npm-package"],"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/heinst.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":"2015-10-05T13:39:31.000Z","updated_at":"2023-03-05T03:44:05.000Z","dependencies_parsed_at":"2023-01-23T02:05:11.621Z","dependency_job_id":null,"html_url":"https://github.com/heinst/nodejs-md5","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/heinst/nodejs-md5","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heinst%2Fnodejs-md5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heinst%2Fnodejs-md5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heinst%2Fnodejs-md5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heinst%2Fnodejs-md5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heinst","download_url":"https://codeload.github.com/heinst/nodejs-md5/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heinst%2Fnodejs-md5/sbom","scorecard":{"id":459823,"data":{"date":"2025-08-11","repo":{"name":"github.com/heinst/nodejs-md5","commit":"daa8bebbb14e575b858820fbc3f15a33a587be13"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T10:48:32.781Z","repository_id":65424802,"created_at":"2025-08-19T10:48:32.781Z","updated_at":"2025-08-19T10:48:32.781Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273996558,"owners_count":25204471,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["md5","md5sum","nodejs","nodejs-md5","nodejs-modules","npm","npm-package"],"created_at":"2025-01-02T08:48:02.949Z","updated_at":"2025-09-07T04:31:20.927Z","avatar_url":"https://github.com/heinst.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nodejs-md5  ![Version][version] [![Build Status](https://travis-ci.org/heinst/nodejs-md5.svg)](https://travis-ci.org/heinst/nodejs-md5) ![Coverage Status][coveralls] ![Total Downloads][total]\n\nA simple node module to give you the MD5 of a file or string.\nMimics the macOS command `md5`.\n\n## To install:\n\n```bash\nnpm install nodejs-md5\n```\n\n## To import:\n\n```JavaScript\nvar md5 = require(\"nodejs-md5\");\n```\n\n## Example Usage:\n\n#### To get the MD5 of a file:\n\n```JavaScript\n//md5 ./test/testfile.txt\nmd5.file(\"./test/testfile.txt\", function(err, md5) {\n    if (err) {\n        console.log(err);\n    }\n    else {\n        console.log(md5); //\"MD5 (testfile.txt) = f0ffb8dbde05931dfb9baeee5c86b214\"\n    }\n});\n```\n\n```JavaScript\n//md5 -q ./test/testfile.txt\nmd5.file.quiet(\"./test/testfile.txt\", function(err, md5) {\n    if (err) {\n        console.log(err);\n    }\n    else {\n        console.log(md5); //'f0ffb8dbde05931dfb9baeee5c86b214'\n    }\n});\n```\n\n```JavaScript\n//md5 -r ./test/testfile.txt\nmd5.file.quiet(\"./test/testfile.txt\", function(err, md5) {\n    if (err) {\n        console.log(err);\n    }\n    else {\n        console.log(md5); //'f0ffb8dbde05931dfb9baeee5c86b214 file.txt'\n    }\n});\n```\n\n#### To get the MD5s of multiple files in one shot:\n\n```JavaScript\n//md5 ./test/testfile.txt ./test/anotherTestFile.txt\nmd5.files([\"./test/testfile.txt\", \"./test/anotherTestFile.txt\"], function(err, md5s) {\n    if (err) {\n        console.log(err);\n    }\n    else {\n        console.log(md5s); //[ 'MD5 (testfile.txt) = f0ffb8dbde05931dfb9baeee5c86b214', 'MD5 (anotherTestFile.txt) = 59a8935a0ac35991c27f29d4f25ea8b9' ]\n    }\n});\n```\n\n```JavaScript\n//md5 -q ./test/testfile.txt ./test/anotherTestFile.txt\nmd5.files.quiet([\"./test/testfile.txt\", \"./test/anotherTestFile.txt\"], function(err, md5s) {\n    if (err) {\n        console.log(err);\n    }\n    else {\n        console.log(md5s); //[ 'f0ffb8dbde05931dfb9baeee5c86b214', '59a8935a0ac35991c27f29d4f25ea8b9' ]\n    }\n});\n```\n\n```JavaScript\n//md5 -r ./test/testfile.txt ./test/anotherTestFile.txt\nmd5.files.reverse([\"./test/testfile.txt\", \"./test/anotherTestFile.txt\"], function(err, md5s) {\n    if (err) {\n        console.log(err);\n    }\n    else {\n        console.log(md5s); //[ 'f0ffb8dbde05931dfb9baeee5c86b214 file.txt', '59a8935a0ac35991c27f29d4f25ea8b9 file.txt' ]\n    }\n});\n```\n\n#### To get the MD5 of a string:\n\n```JavaScript\n//md5 -s \"Hello, world\"\nmd5.string(\"Hello, world\", function (err, md5) {\n    if (err) {\n        console.log(err);\n    }\n    else {\n        console.log(md5); //'MD5 (\"Hello, world\") = bc6e6f16b8a077ef5fbc8d59d0b931b9'\n    }\n});\n```\n\n```JavaScript\n//md5 -qs \"Hello, world\"\nmd5.string.quiet(\"Hello, world\", function (err, md5) {\n    if (err) {\n        console.log(err);\n    }\n    else {\n        console.log(md5); //\"bc6e6f16b8a077ef5fbc8d59d0b931b9\"\n    }\n});\n```\n\n```JavaScript\n//md5 -rs \"Hello, world\"\nmd5.string.reverse(\"Hello, world\", function (err, md5) {\n    if (err) {\n        console.log(err);\n    }\n    else {\n        console.log(md5); //'bc6e6f16b8a077ef5fbc8d59d0b931b9 \"Hello, world\"'\n    }\n});\n```\n## Contribution welcome!\n\nIf you would like to improve on this library, fork it, branch it, pull request it!\n\n[coveralls]: https://img.shields.io/coveralls/heinst/nodejs-md5.svg\n[total]: https://img.shields.io/npm/dt/nodejs-md5.svg\n[version]: https://img.shields.io/npm/v/nodejs-md5.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheinst%2Fnodejs-md5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheinst%2Fnodejs-md5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheinst%2Fnodejs-md5/lists"}