bear-patch

Under development.

Usage no npm install needed!

<script type="module">
  import bearPatch from 'https://cdn.skypack.dev/bear-patch';
</script>

README

bear-patch

Bear Patch is a utility that can apply an update from a public resource.

Diff Match Patch

This package relies heavily on Google's Diff Match and Patch library for JavaScript. Patches should be minimal, but unfortunately DMP isn't binary safe. As a result, patches are expanded a little by using base 64 encoding, then brotli compressing the patch text.

Tape Drive

A Tape Drive is a set of key value pairs. I liked how redis stores the byte size of an object as an ASCII integer in AOFs. So that is the file format in a nutshell. A collection of pure ASCII text files would produce an ASCII Tape Drive consisting of an index, followed by each file concatenated. When a file is modified, the index will reflect changes to the file size, and the new file is swapped in. Note, this is a very basic key value data structure for accessing buffers.

File paths may not contain a colon, as that is used internally as a separator.

Also Free

Licensed under Apache 2.0