{"id":16186687,"url":"https://github.com/allain/json-patch-stream","last_synced_at":"2025-02-26T15:31:13.997Z","repository":{"id":25263568,"uuid":"28688830","full_name":"allain/json-patch-stream","owner":"allain","description":"JSON-patch utilities for transforming a stream of JSON documents into a stream of JSON patches and vice versa","archived":true,"fork":false,"pushed_at":"2015-01-01T15:28:05.000Z","size":116,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T15:37:09.053Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allain.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":"2015-01-01T15:12:47.000Z","updated_at":"2024-10-18T12:46:52.000Z","dependencies_parsed_at":"2022-09-07T13:14:25.429Z","dependency_job_id":null,"html_url":"https://github.com/allain/json-patch-stream","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/allain%2Fjson-patch-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allain%2Fjson-patch-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allain%2Fjson-patch-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allain%2Fjson-patch-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allain","download_url":"https://codeload.github.com/allain/json-patch-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240880352,"owners_count":19872518,"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-10T07:19:21.316Z","updated_at":"2025-02-26T15:31:13.701Z","avatar_url":"https://github.com/allain.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-patch-stream\n\nJSON-patch utilities for transforming a stream of JSON documents into a stream of JSON patches and vice versa\n\n[![build status](https://secure.travis-ci.org/allain/json-patch-stream.png)](http://travis-ci.org/allain/json-patch-stream)\n\n## Installation\n\nThis module is installed via npm:\n\n``` bash\n$ npm install json-patch-stream\n```\n\n## Example Usage\n\n``` js\nvar streamify = require('stream-array'),\nvar stdout = require('stdout');\n\nvar jsonPatchStream = require('json-patch-stream');\n\nstreamify([{\"a\": 10}, {\"a\": 20}])\n  .pipe(jsonPatchStream.toPatches())\n  .pipe(stdout());\n\n// Ouputs these two json patches\n// [ { op: 'add', path: '/a', value: 10 } ]\n// [ { op: 'test', path: '/a', value: 10 }, {} op: 'replace', path: '/a', value: 20 } ]\n\nstreamify([\n  [ { op: 'add', path: '/a', value: 10 } ],\n  [ { op: 'test', path: '/a', value: 10 }, {} op: 'replace', path: '/a', value: 20 } ]\n])\n.pipe(jsonPatchStream.toDocs())\n.pipe(stdout());\n\n// Outputs these two docs\n// {\"a\": 10}\n// {\"a\": 20}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallain%2Fjson-patch-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallain%2Fjson-patch-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallain%2Fjson-patch-stream/lists"}