@es-git/zlib-mixin
TypeScript icon, indicating that this package has built-in type declarations

0.10.0 • Public • Published

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');

Readme

Keywords

none

Package Sidebar

Install

npm i @es-git/zlib-mixin

Weekly Downloads

5

Version

0.10.0

License

MIT

Unpacked Size

18.4 kB

Total Files

16

Last publish

Collaborators

  • mariusgundersen