{"id":23722667,"url":"https://github.com/remko/json-array-streams","last_synced_at":"2025-07-18T08:37:37.959Z","repository":{"id":56439662,"uuid":"41763618","full_name":"remko/json-array-streams","owner":"remko","description":"Streams for JSON array parsing/stringifying","archived":false,"fork":false,"pushed_at":"2020-11-07T15:41:38.000Z","size":6,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-04T08:23:57.689Z","etag":null,"topics":[],"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/remko.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-09-01T21:11:48.000Z","updated_at":"2023-06-14T18:28:56.000Z","dependencies_parsed_at":"2022-08-15T18:50:11.301Z","dependency_job_id":null,"html_url":"https://github.com/remko/json-array-streams","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/remko/json-array-streams","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remko%2Fjson-array-streams","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remko%2Fjson-array-streams/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remko%2Fjson-array-streams/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remko%2Fjson-array-streams/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remko","download_url":"https://codeload.github.com/remko/json-array-streams/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remko%2Fjson-array-streams/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265728981,"owners_count":23818733,"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-12-30T23:55:23.445Z","updated_at":"2025-07-18T08:37:37.940Z","avatar_url":"https://github.com/remko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [json-array-streams: Streams for JSON array parsing/stringifying](https://el-tramo.be/json-array-streams)\n\nThis package provides streams for parsing and stringifying a stream of objects to a \nJSON array. This is useful when you have huge lists of generated data from a stream that \nyou can't (or don't want to) entirely keep in memory, and instead want to directly stream\nthis to/from storage.\n\n## Installation\n\n    npm install json-array-streams --save\n\n## Usage\n\n    var through = require(\"through2\");\n    var fs = require(\"fs\");\n    var jsonArrayStreams = require(\"json-array-streams\");\n\n    // Write a stream of objects to a JSON file\n    createSomeObjectStream()\n      .pipe(jsonArrayStreams.stringify())\n      .pipe(fs.createWriteStream(\"data.json\"));\n\n    // Read a stream of objects from a JSON file\n    fs.createReadStream(\"data.json\")\n      .pipe(jsonArrayStreams.parse())\n      .pipe(through.obj(function (object, enc, cb) {\n        console.log(\"Got object\", object);\n        cb();\n      }));\n\n## API\n\n### `jsonArrayStreams.parse()`\n\nCreate a parsing stream.\n\n### `jsonArrayStreams.stringify([replacer, [space]])`\n\nCreate a stringifying stream.\n\n`replacer`, `space` are optional parameters that are passed to `JSON.stringify`, to support pretty-printing the output.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremko%2Fjson-array-streams","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremko%2Fjson-array-streams","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremko%2Fjson-array-streams/lists"}