scalalibdiff_2.12

Basic text diff library for Scala & ScalaJS

License

License

MIT
Categories

Categories

Scala Languages GUI User Interface
GroupId

GroupId

com.github.guillaumebort
ArtifactId

ArtifactId

scalalibdiff_2.12
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

scalalibdiff_2.12
Basic text diff library for Scala & ScalaJS
Project URL

Project URL

https://github.com/guillaumebort/scalalibdiff
Source Code Management

Source Code Management

https://github.com/guillaumebort/scalalibdiff

Download scalalibdiff_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.guillaumebort/scalalibdiff_2.12/ -->
<dependency>
    <groupId>com.github.guillaumebort</groupId>
    <artifactId>scalalibdiff_2.12</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.guillaumebort/scalalibdiff_2.12/
implementation 'com.github.guillaumebort:scalalibdiff_2.12:0.1.0'
// https://jarcasting.com/artifacts/com.github.guillaumebort/scalalibdiff_2.12/
implementation ("com.github.guillaumebort:scalalibdiff_2.12:0.1.0")
'com.github.guillaumebort:scalalibdiff_2.12:jar:0.1.0'
<dependency org="com.github.guillaumebort" name="scalalibdiff_2.12" rev="0.1.0">
  <artifact name="scalalibdiff_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.guillaumebort', module='scalalibdiff_2.12', version='0.1.0')
)
libraryDependencies += "com.github.guillaumebort" % "scalalibdiff_2.12" % "0.1.0"
[com.github.guillaumebort/scalalibdiff_2.12 "0.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

scalalibdiff

: a very simple diff library

The main feature is to display text diff in a human readable format, such as:

    in_flight = true;

-   JsonObjectRequest req = new JsonObjectRequest(Request.POST,</span>
+   JsonObjectRequest req = new JsonObjectRequest(Request.GET,</span>
      new Response.Listener<JSONObject>() {
      @Override
      public void onResponse(JSONObject response) {

But you can also use the low level API to customize the way diff are displayed.

There are certainly better and more advanced text diff library for the JVM but this one is compiled to ScalaJS. I use it mainly for good reporting in my tests (and I like to be able to run my test suite fully in Javascript for ScalaJS libraries).

Add the dependency

Add the following to your SBT config:

libraryDependencies += "com.github.guillaumebort" %% "scalalibdiff" % "0.1.0"

For ScalaJS applications, use this dependencies instead:

libraryDependencies += "com.github.guillaumebort" %%% "scalalibdiff" % "0.1.0"

Versions

Version
0.1.0