{"id":17766621,"url":"https://github.com/floatdrop/hashdir","last_synced_at":"2026-02-28T04:14:45.816Z","repository":{"id":13303975,"uuid":"15990241","full_name":"floatdrop/hashdir","owner":"floatdrop","description":"Hashes content in directory and returning object with file structure and hashes (useful in tests)","archived":false,"fork":false,"pushed_at":"2014-01-17T05:54:49.000Z","size":156,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-20T09:06:43.737Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/floatdrop.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":"2014-01-17T04:40:31.000Z","updated_at":"2015-07-30T02:58:08.000Z","dependencies_parsed_at":"2022-08-29T01:00:18.533Z","dependency_job_id":null,"html_url":"https://github.com/floatdrop/hashdir","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/floatdrop/hashdir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fhashdir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fhashdir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fhashdir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fhashdir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floatdrop","download_url":"https://codeload.github.com/floatdrop/hashdir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fhashdir/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266231763,"owners_count":23896473,"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-10-26T20:33:26.334Z","updated_at":"2025-10-30T12:01:59.672Z","avatar_url":"https://github.com/floatdrop.png","language":null,"readme":"# hashdir\n[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status](https://coveralls.io/repos/floatdrop/hashdir/badge.png)](https://coveralls.io/r/floatdrop/hashdir) [![Dependency Status][depstat-image]][depstat-url]\n\nHashes content in directory and returning object with file structure and hashes (useful in tests)\n\n## Install\n\nInstall with npm:\n\n`npm install --save hashdir`\n\n## Example\n\n```js\nvar hashdir = require('hashdir');\n\n/* `directory` structure:\ndirectory/\n  folder/\n    file2.js\n  emptyfolder/\n  file1.js\n*/\nhashdir('directory', function (err, result) {\n    assert.deepEqual(result, {\n        'file1.js': 'SHA-1 of file1.js content',\n        'folder/file2.js': 'SHA-1 of file2.js content',\n        'folder/emptyfolder': undefined,\n        'folder/folder': undefined,\n    });\n});\n\n```\n\n## API\n\n### hashdir(path[, opts], cb)\n\n__path__\n\n`String`, path to directory, that you want to be hashed.\n\n__opts__\n\n`Object`, that passed to [`walk`](https://npmjs.org/package/walk) module.\n\n__cb__\n\n`Function`, that recieves `error` as first argument and `result` object in second.\n\n## License\n\nMIT © Vsevolod Strukchinsky\n\n[npm-url]: https://npmjs.org/package/hashdir\n[npm-image]: https://badge.fury.io/js/hashdir.png\n\n[travis-url]: http://travis-ci.org/floatdrop/hashdir\n[travis-image]: https://travis-ci.org/floatdrop/hashdir.png?branch=master\n\n[depstat-url]: https://david-dm.org/floatdrop/hashdir\n[depstat-image]: https://david-dm.org/floatdrop/hashdir.png?theme=shields.io\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fhashdir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloatdrop%2Fhashdir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fhashdir/lists"}