Skip to content

scratchblocks/scratch-diff

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

scratch-diff

structured diff over Scratch 2.0 project JSON.

The eventual successor to https://scratchblocks.github.io/diff/.

The plan is to support CLI usage (via node.js) and bundling for browser usage as the core of the above web app.

Install

$ yarn

Usage

const { diff, Project, colorize } = require('scratch-diff')

let a = Project.load('foo1.sb2')
let b = Project.load('foo2.sb2')
let result = diff(a.project, b.project)
console.log(colorize(result))

About

Compare Scratch projects and scripts. Returns a structural diff (tree). JS/Node.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published