Schniz / beg-to-differ

Simple string diff patching for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

beg-to-differ.js Travis CI

Simple string diff patches for your app.

Installing

npm install --save beg-to-differ

Usage

var differ = require('beg-to-differ');

var patch = differ.createPatch("from String", "to String");
var toString = differ.applyPatch("from String", patch);

Can be used in Neo4j relationships without JSON.stringifying it (array of strings) for implementing a simple versioning system.

Testing

npm test

Contributing

  • fork
  • branch
  • write tests
  • code (don't break shit)
  • commit & push
  • pull request
  • profit

About

Simple string diff patching for node.js


Languages

Language:JavaScript 100.0%