Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@es-git/zlib-mixin

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@es-git/zlib-mixin - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc