{"id":16994610,"url":"https://github.com/znerol/node-delta","last_synced_at":"2025-03-22T15:31:05.776Z","repository":{"id":2067474,"uuid":"3006202","full_name":"znerol/node-delta","owner":"znerol","description":"Delta.js - A JavaScript diff and patch engine for DOM trees","archived":false,"fork":false,"pushed_at":"2020-03-05T17:15:11.000Z","size":4572,"stargazers_count":47,"open_issues_count":3,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T13:18:51.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://znerol.github.com/node-delta/","language":"JavaScript","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/znerol.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":"2011-12-18T14:15:29.000Z","updated_at":"2024-10-22T04:06:09.000Z","dependencies_parsed_at":"2022-08-30T18:41:20.678Z","dependency_job_id":null,"html_url":"https://github.com/znerol/node-delta","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/znerol%2Fnode-delta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fnode-delta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fnode-delta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znerol%2Fnode-delta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/znerol","download_url":"https://codeload.github.com/znerol/node-delta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244978549,"owners_count":20541870,"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-14T03:46:04.319Z","updated_at":"2025-03-22T15:31:04.860Z","avatar_url":"https://github.com/znerol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Delta.js - A JavaScript diff and patch engine for DOM trees\n===========================================================\n\n[![Build Status](https://travis-ci.org/znerol/node-delta.svg?branch=master)](https://travis-ci.org/znerol/node-delta)\n\nRequirements\n------------\n\n* node.js: Tested on v4, v6, v8, v10, v12\n* GNU make\n\nThe instructions have been tested on Linux. They probably also work on Mac OS X\nmachines with installed XCode Developer Tools. There is currently no support\nfor Microsoft Windows.\n\n\nBuild instructions for node.js\n------------------------------\n\nDelta.js runs within modern web browsers as well as under node.js. In order to\nuse it as a module for node.js based projects, just drop this directory into an\nappropriate module path. For example the `node\\_modules` folder of your\nproject.\n\nThe delta.js source directory is organized as an npm package. Invoking the\ncommand `npm install` will download any dependencies and install them into the\ndirectory `node\\_modules`.\n\nIt is recommended to verify the installation by running the automated test\nsuite once by invoking `make test`.\n\n\nBuilding AMD modules\n--------------------\n\nIn order to build a version suitable for AMD module loaders like dojo or\nrequire.js, invoke `make amd`. The built modules are put into the directory\n`dist/amd`.\n\n\nBuilding single file browser version\n------------------------------------\n\nA single-file browser version of the framework can be built using the command\n`make browser`. The result is placed into `dist/browser/delta.js`. Note that\nthis version is not compatible with AMD modules.\n\n\nRunning the command line version\n--------------------------------\n\nThe command line utilities are located in the `bin` directory. They may be\ninvoked directly without a prior build. There are some sample XML files in\n`test/fixtures` which are useful to quickly test the command line interfaces.\n\nFollow this example in order to produce a patch by diffing two versions of an\nXML file as well as apply it afterwards back to the original version.\n\n```bash\n./bin/djdiff.js -p xml ./test/fixtures/logo-1.svg ./test/fixtures/logo-2.svg \u003e /tmp/logo-diff.xml\n./bin/djpatch.js -p xml ./test/fixtures/logo-1.svg /tmp/logo-diff.xml \u003e /tmp/logo-1-patched.svg\n```\n\nThe file `/tmp/logo-diff.xml` will contain the changes between `logo-1.svg` and\n`logo-2.svg` while the file `/tmp/logo-1-patched.svg` will contain the same\ncontents as `logo-2.svg`.\n\n\nRunning the browser based examples\n----------------------------------\n\nIn order to build the examples, invoke `make examples`. Run\n`node scripts/http.js examples/lcs` in order to start a local webserver for the\nLCS example. Then point your browser at http://localhost:3000 in order to\naccess the LCS web application.\n\nThe following examples are available:\n\n* `example/lcs`\n  A visualization of Myers Longest Common Subsequence algorithm.\n* `example/xcc`\n  A web application allowing to step through the XCC tree matching algorithm.\n* `example/srcdiff`\n  Given two versions of an XML file, this web application will highlight the\n  differencies on the XML source code.\n* `example/vizmerge/src`\n  A web application allowing diffing and selectively merging of changes in XMl\n  documents. This demo application also features a live preview where the\n  effects of a change are shown in realtime.\n\n\nBulding the API reference\n-------------------------\n\nIn order to build the API reference, the Python Documentation Generatior Sphinx\nand the jsdoc toolkit version 2 is required. After invoking `make doc`, the\ndirectory `doc/\\_build/html` contains the built documentation in HTML format.\n\nLincense\n--------\n\nThis project is licensed under the terms of the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznerol%2Fnode-delta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fznerol%2Fnode-delta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznerol%2Fnode-delta/lists"}