beg-to-differ

Simple string diff patching

Usage no npm install needed!

<script type="module">
  import begToDiffer from 'https://cdn.skypack.dev/beg-to-differ';
</script>

README

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 when JSON.stringifying it for implementing a simple versioning system.

Testing

npm test

Contributing

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