{"id":20767010,"url":"https://github.com/binded/store-uploader","last_synced_at":"2025-03-11T18:51:27.519Z","repository":{"id":57371324,"uuid":"67163236","full_name":"binded/store-uploader","owner":"binded","description":"store-uploader (oli: I think that's deprecated)","archived":false,"fork":false,"pushed_at":"2016-09-01T21:57:39.000Z","size":2398,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-16T19:37:45.116Z","etag":null,"topics":[],"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/binded.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":"2016-09-01T20:15:23.000Z","updated_at":"2021-02-09T14:52:10.000Z","dependencies_parsed_at":"2022-09-26T16:41:16.115Z","dependency_job_id":null,"html_url":"https://github.com/binded/store-uploader","commit_stats":null,"previous_names":["blockai/store-uploader"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binded%2Fstore-uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binded%2Fstore-uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binded%2Fstore-uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binded%2Fstore-uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binded","download_url":"https://codeload.github.com/binded/store-uploader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243094608,"owners_count":20235531,"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-11-17T11:27:14.627Z","updated_at":"2025-03-11T18:51:27.489Z","avatar_url":"https://github.com/binded.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# store-uploader\n\n[![Build Status](https://travis-ci.org/blockai/store-uploader.svg?branch=master)](https://travis-ci.org/blockai/store-uploader)\n\nWrapper around\n[abstract-blob-store](https://github.com/maxogden/abstract-blob-store)\nto upload a stream and get back a series of hash digests, the size of\nthe file and the key it was stored to.\n\n## Install\n\n```bash\nnpm install --save store-uploader\n```\n\nRequires Node v6+\n\n## Usage\n\nSee [./test](./test) directory for usage examples.\n\n```javascript\nimport storeUploader from 'store-uploader'\nimport blobFs from 'fs-blob-store'\nimport fs from 'fs'\n\nconst store = blobFs('./directory')\nconst upload = storeUploader(store)\n// storeUploader(store[, opts])\n// opts.keyPrefix prefix keys with this string (defaults to uploads/)\n// opts.algos hash algorithms (defaults to ['sha1', 'md5', 'sha256'])\n\n// upload(readStream[, opts])\n// opts.contentType optional content type\nupload(fs.createReadStream('./somefile'))\n  .then(({ digests, size, key }) =\u003e {\n    // digests is an object: { sha1: '...', md5: '...', sha256: '...' }\n    // size is the size of the stream in bytes\n    // key is the key where the stream was uploaded\n  })\n  .catch((err) =\u003e {\n    // handle error...\n  })\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinded%2Fstore-uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinded%2Fstore-uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinded%2Fstore-uploader/lists"}