New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

jdiff-js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jdiff-js

JojoDiff for JavaScript

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

JDiff.js

JavaScript adaptation of JojoDiff by Joris Heirbaut. For more information and to see the API, see the JojoDiff project page on SourceForge. The project is written in C++, then cross-compiled through Emscripten so it can be used by any JavaScript client.

JojoDiff is great because it generates linear patch files, which can be applied in a very memory-efficient manner. We're using this in janpatch - a patching library for embedded systems that can run in very little memory. This allows us to bring delta updates to even the smallest devices. Having JojoDiff available as a JavaScript library makes it easier to integrate in our build tools.

Currently the library is only available as CLI application, but it'll be adapted into a proper library at some point in the near future.

Usage

  • Install a recent version of Node.js.

  • Install the project:

    $ npm install jdiff -g
    
  • Use the application:

    $ jdiff ./file1 ./file2 ./patch-file
    

Compiling

  • Install the Emscripten SDK and make sure emcc is in your PATH.

  • Clone this repository:

    $ git clone https://github.com/janjongboom/jdiff-js
    
  • Build the project:

    $ cd src
    $ make js
    
  • Run the project:

    $ node ../jdiff.js
    

License

GNU General Public License version 3.0 (GPLv3). See COPYING.

Keywords

diff

FAQs

Package last updated on 20 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts