@es-git/zlib-mixin
Advanced tools
Comparing version 0.1.2 to 0.2.0
{ | ||
"name": "@es-git/zlib-mixin", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "", | ||
@@ -42,3 +42,3 @@ "main": "js/index.js", | ||
"dependencies": { | ||
"@es-git/core": "^0.1.2", | ||
"@es-git/core": "^0.2.0", | ||
"pako": "^0.2.5" | ||
@@ -45,0 +45,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
# __template__ | ||
# zlib-mixin | ||
@@ -8,5 +8,19 @@ This is part of the [ES-Git](https://github.com/es-git/es-git) project. | ||
```bash | ||
npm install --save @es-git/__template__ | ||
npm install --save @es-git/zlib-mixin | ||
``` | ||
# Usage | ||
## Usage | ||
Mix this in with an [IObjectRepo](https://www.npmjs.com/package/@es-git/object-mixin#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](https://www.npmjs.com/package/@es-git/node-fs-repo) to interact with a native git repository in the file-system. | ||
```ts | ||
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'); | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17552
26
+ Added@es-git/core@0.2.0(transitive)
- Removed@es-git/core@0.1.2(transitive)
Updated@es-git/core@^0.2.0