{"id":20375069,"url":"https://github.com/leelow/sha512sum","last_synced_at":"2026-04-24T23:32:03.177Z","repository":{"id":57357554,"uuid":"83734118","full_name":"Leelow/sha512sum","owner":"Leelow","description":"💾 💿 The same behaviour as linux command with directories support. https://linux.die.net/man/1/sha512sum.","archived":false,"fork":false,"pushed_at":"2019-02-22T20:33:03.000Z","size":435,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T03:34:04.224Z","etag":null,"topics":["checksum","checksums","javascript","js","nodejs","sha512"],"latest_commit_sha":null,"homepage":"","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/Leelow.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}},"created_at":"2017-03-02T23:08:21.000Z","updated_at":"2021-03-23T16:13:19.000Z","dependencies_parsed_at":"2022-09-26T16:32:25.667Z","dependency_job_id":null,"html_url":"https://github.com/Leelow/sha512sum","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leelow%2Fsha512sum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leelow%2Fsha512sum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leelow%2Fsha512sum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leelow%2Fsha512sum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Leelow","download_url":"https://codeload.github.com/Leelow/sha512sum/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241923887,"owners_count":20043096,"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","checksums","javascript","js","nodejs","sha512"],"created_at":"2024-11-15T01:28:41.004Z","updated_at":"2026-04-24T23:32:03.145Z","avatar_url":"https://github.com/Leelow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sha512sum\n\n[![npm version][npm-version-image]][npm-version-url]\n[![Build Status][travis-image]][travis-url]\n[![Build Status][appveyor-image]][appveyor-url]\n[![Coverage][coveralls-image]][coveralls-url]\n[![JavaScript Style Guide][javascript-standard-image]][javascript-standard-url]\n\n\u003e The same behaviour as linux command with directories support. [https://linux.die.net/man/1/sha512sum](https://linux.die.net/man/1/sha512sum)\n\nWorks on Linux and Windows.\n\n## Install\n\n```\n$ npm install --save sha512sum\n```\n\n## Usage\n\n\u003e For a file\n\n```js\nconst sha512sum = require('sha512sum');\n\n// 992 ... 80a  /path/to/file\nsha512sum.fromFile('/path/to/file', options, function(err, hash) {\n  if (err) throw err\n  console.log(hash)\n});\n\nconsole.log(sha512sum.fromFileSync('/path/to/file', options))\n```\nSimilar to linux command:\n\n    $ sha512sum /path/to/file\n\n \u003e For a directory\n\n```js\nconst sha512sum = require('sha512sum');\n\n// 992 ... 80a  /path/to/dir/h.txt\n// erf ... e3f  /path/to/dir/b/e.doc\n// cd5 ... r9g  /path/to/dir/b/l.png\n// b2r ... v2f  /path/to/dir/c/l.csv\n// adr ... 9t6  /path/to/dir/d/o.world\nsha512sum.fromDirectory('/path/to/dir', options, function(err, hash) {\n  if (err) throw err\n  console.log(hash)\n});\n\nconsole.log(sha512sum.fromDirectorySync('/path/to/dir', options))\n```\n\nSimilar to linux command:\n\n    $ find files -type f -printf \"%d%p\\n\" | sort -n | cut -c 2- | xargs sha512sum\n\n## Options\n\n* `cwd`: current work directory\n* `sep`: separator between hash and filename, default value is double-space\n\n## License\n\n[MIT](LICENSE) © [Léo Lozach](https://github.com/Leelow)\n\n[npm-version-image]: https://badge.fury.io/js/sha512sum.svg\n[npm-version-url]: https://www.npmjs.com/package/sha512sum\n[travis-image]: https://travis-ci.org/Leelow/sha512sum.svg?branch=master\n[travis-url]: https://travis-ci.org/Leelow/sha512sum\n[appveyor-image]: https://ci.appveyor.com/api/projects/status/ltppe1sp0ucnm6r3?svg=true\n[appveyor-url]: https://ci.appveyor.com/project/Leelow/sha512sum\n[coveralls-image]: https://coveralls.io/repos/github/Leelow/sha512sum/badge.svg?branch=master\n[coveralls-url]: https://coveralls.io/github/Leelow/sha512sum?branch=master\n[javascript-standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n[javascript-standard-url]: http://standardjs.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleelow%2Fsha512sum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleelow%2Fsha512sum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleelow%2Fsha512sum/lists"}