{"id":17345019,"url":"https://github.com/jgranstrom/zipson-stream","last_synced_at":"2026-03-07T23:02:15.672Z","repository":{"id":57406141,"uuid":"123954423","full_name":"jgranstrom/zipson-stream","owner":"jgranstrom","description":"Stream support for zipson","archived":false,"fork":false,"pushed_at":"2018-03-12T13:53:08.000Z","size":137,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T08:41:36.247Z","etag":null,"topics":["compression","parse","stream","stringify","zipson"],"latest_commit_sha":null,"homepage":"https://github.com/jgranstrom/zipson","language":"TypeScript","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/jgranstrom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-05T17:29:56.000Z","updated_at":"2025-02-11T15:50:17.000Z","dependencies_parsed_at":"2022-09-11T23:22:14.640Z","dependency_job_id":null,"html_url":"https://github.com/jgranstrom/zipson-stream","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgranstrom%2Fzipson-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgranstrom%2Fzipson-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgranstrom%2Fzipson-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgranstrom%2Fzipson-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgranstrom","download_url":"https://codeload.github.com/jgranstrom/zipson-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248817629,"owners_count":21166281,"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":["compression","parse","stream","stringify","zipson"],"created_at":"2024-10-15T16:28:37.865Z","updated_at":"2026-03-07T23:02:10.644Z","avatar_url":"https://github.com/jgranstrom.png","language":"TypeScript","readme":"# zipson-stream\n\n[![Build Status](https://travis-ci.org/jgranstrom/zipson-stream.svg?branch=master\u0026style=flat)](https://travis-ci.org/jgranstrom/zipson-stream)\n[![npm version](https://badge.fury.io/js/zipson-stream.svg)](http://badge.fury.io/js/zipson-stream)\n[![dependencies Status](https://david-dm.org/jgranstrom/zipson-stream/status.svg)](https://david-dm.org/jgranstrom/zipson-stream)\n[![devDependencies Status](https://david-dm.org/jgranstrom/zipson-stream/dev-status.svg)](https://david-dm.org/jgranstrom/zipson-stream?type=dev)\n\nzipson-stream adds node stream support to [zipson](https://github.com/jgranstrom/zipson), a JSON.parse/stringify alternative with added compression.\n\nTry zipson with the [online demo](https://jgranstrom.github.io/zipson/)\n\n---\n\n- [Installing](#installing)\n- [API](#api)\n  - [`stringifyStream(data, options?)`](#stringifystreamdata-options)\n  - [`parseStream(stream)`](#parsestreamstream)\n- [Running the tests](#running-the-tests)\n- [Contributing](#contributing)\n- [Versioning](#versioning)\n- [License](#license)\n\n### Installing\n\n`npm install --save zipson-stream`\n\n### API\n\n##### `stringifyStream(data, options?)`\n\nStringify data to a zipson stream. Compression options can be provided according to [zipson documentation](https://github.com/jgranstrom/zipson#options)\n\n```javascript\nimport { stringifyStream } from 'zipson-stream';\n// const { stringifyStream } = require('zipson-stream');\n\nconst myData = [1, 2, 3, 4 ,5];\nconst stream = stringifyStream(myData, options);\nstream.pipe(process.stdout);\n```\n\n##### `parseStream(stream)`\n\nParse a zipson stream, resolves with the parsed data when the stream ends.\n\n```javascript\nimport { parseStream } from 'zipson-stream';\n// const { parseStream } = require('zipson-stream');\n\nparseStream(myStringifiedStream)\n.then(parsedData =\u003e {\n  console.log(parsedData);\n});\n```\n\n### Running the tests\n\n```npm test```\n\nFor running tests in watch mode while developing:\n\n```npm run testw```\n\n### Contributing\n\nPull requests are welcome. Please see the [conventional commits](https://conventionalcommits.org/) guidelines for commit message formatting.\n\n### Versioning\n\nThis project is versioned using [SemVer](http://semver.org/) See [tags](https://github.com/jgranstrom/zipson-stream/tags) and [CHANGELOG.md](CHANGELOG.md) for version details.\n\n### License\n\nThis project is licensed under the MIT License - see [LICENSE.md](LICENSE.md) file for details\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgranstrom%2Fzipson-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgranstrom%2Fzipson-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgranstrom%2Fzipson-stream/lists"}