{"id":22559730,"url":"https://github.com/random-guys/blobber","last_synced_at":"2025-03-28T12:12:15.571Z","repository":{"id":41741493,"uuid":"217031818","full_name":"random-guys/blobber","owner":"random-guys","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-10T13:26:53.000Z","size":307,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T12:35:53.335Z","etag":null,"topics":["lib","library"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/random-guys.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":"2019-10-23T10:35:12.000Z","updated_at":"2021-05-18T09:16:51.000Z","dependencies_parsed_at":"2023-01-26T02:00:48.596Z","dependency_job_id":null,"html_url":"https://github.com/random-guys/blobber","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/random-guys%2Fblobber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/random-guys%2Fblobber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/random-guys%2Fblobber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/random-guys%2Fblobber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/random-guys","download_url":"https://codeload.github.com/random-guys/blobber/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246026111,"owners_count":20711581,"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":["lib","library"],"created_at":"2024-12-07T21:08:49.556Z","updated_at":"2025-03-28T12:12:15.541Z","avatar_url":"https://github.com/random-guys.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blobber 🍅\n\nGoMoney records as Azure blobs.\n\n# Installation\n\n```sh\nyarn add @random-guys/blobber\n```\n\nor\n\n```sh\nnpm install @random-guys/blobber\n```\n\n## Usage\n\n```ts\nconst stream = async () =\u003e {\n  try {\n    const blobber = new Blobber\u003cNumber\u003e('exports');\n\n    // \n    const uppercaseTransformer = new Transform({\n      writableObjectMode: true,\n      readableObjectMode: true,\n      transform(chunk, encoding, callback) {\n        this.push({ Name: chunk });\n        callback();\n      }\n    });\n\n    const blobPath = join(__dirname, '../../test.csv');\n    const options: OmiOptions\u003cstring\u003e = {\n      transformer: uppercaseTransformer,\n      fields: ['Name'],\n      blobPath\n    };\n\n    const printDownloadUrl = (val: string) =\u003e {\n      console.log(val);\n    };\n    blobber.createBlobFromOmi(options, printDownloadUrl);\n\n    // add the records to the file\n    blobber.addRecords([...Array.from({ length: 5 }).keys()].map(i =\u003e i));\n\n    // null tell the stream we're done adding records\n    blobber.addRecords([null]);\n  } catch (error) {\n    console.log(error);\n  }\n};\n\nstream();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandom-guys%2Fblobber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frandom-guys%2Fblobber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandom-guys%2Fblobber/lists"}