zlib-mixin
This is part of the ES-Git project.
Install
npm install --save @es-git/zlib-mixin
Usage
Mix this in with an IObjectRepo.
This mixin compresses the raw objects when saving and decompresses the raw objects when loading them, using zlib. This is required when using node-fs-repo to interact with a native git repository in the file-system.
import FsRepo from '@es-git/node-fs-repo';
import zlib from '@es-git/zlib-mixin';
const Repo = mix(Fs)
.with(zlib);
const repo = new Repo(__dirname + '/.git');