{"id":18084519,"url":"https://github.com/endel/node-delta","last_synced_at":"2025-03-28T23:32:17.059Z","repository":{"id":65460384,"uuid":"77470888","full_name":"endel/node-delta","owner":"endel","description":"An efficient delta compression algorithm for Node.js","archived":false,"fork":false,"pushed_at":"2017-10-19T12:06:13.000Z","size":28,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-09T17:14:33.712Z","etag":null,"topics":["compression","delta","fossil-scm"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/endel.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-12-27T17:08:59.000Z","updated_at":"2022-10-15T21:45:48.000Z","dependencies_parsed_at":"2023-01-24T14:45:20.629Z","dependency_job_id":null,"html_url":"https://github.com/endel/node-delta","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/endel%2Fnode-delta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fnode-delta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fnode-delta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endel%2Fnode-delta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endel","download_url":"https://codeload.github.com/endel/node-delta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222431531,"owners_count":16983387,"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","delta","fossil-scm"],"created_at":"2024-10-31T15:07:03.506Z","updated_at":"2024-10-31T15:07:04.420Z","avatar_url":"https://github.com/endel.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"node-delta [![Build Status](https://secure.travis-ci.org/endel/node-delta.svg?branch=master)](http://travis-ci.org/endel/node-delta) [![Build status](https://ci.appveyor.com/api/projects/status/m3shq2gxu1a1hk91?svg=true)](https://ci.appveyor.com/project/endel/node-delta)\n===\n\nAn efficient delta compression algorithm for Node.js, written in C. ([see original source code](http://fossil-scm.org/xfer/artifact/e5c5c088b05441b7))\n\n**Requires NodeJS v4 or higher**\n\nUsage\n---\n\n```\nconst fossilDelta = require('node-delta');\n```\n\nCreating delta between `origin` and `target` buffer:\n\n```\nvar origin = new Buffer([1,2,3,4]);\nvar target = new Buffer([1,2,3,4,5,6]);\nvar delta = fossilDelta.create(origin, target);\n```\n\nApplying the delta:\n\n```\nvar origin = new Buffer([1,2,3,4]);\nvar target = fossilDelta.apply(origin, delta);\n```\n\nBenchmarks\n---\n\nFor creating the patch, [node-delta](https://github.com/endel/node-delta/) has the best results. (roughly ~2x speed)\n\n```\n(create) node-delta x 313,371 ops/sec ±1.76% (77 runs sampled)\n(create) fossil-delta x 238,424 ops/sec ±3.58% (75 runs sampled)\n```\n\nFor applying the patch, [fossil-delta-js](https://github.com/dchest/fossil-delta-js) still have the best results.\n\n```\n(apply) node-delta x 664,472 ops/sec ±5.44% (69 runs sampled)\n(apply) fossil-delta x 860,541 ops/sec ±1.57% (84 runs sampled)\n```\n\nReferences\n---\n\n- [Fossil Delta Format](http://fossil-scm.org/xfer/doc/trunk/www/delta_format.wiki)\n- [Pure JavaScript port](https://github.com/dchest/fossil-delta-js)\n- [C# port](https://github.com/endel/FossilDelta)\n\nLicense\n---\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendel%2Fnode-delta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendel%2Fnode-delta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendel%2Fnode-delta/lists"}