# deltaflate-decode

> Core client support for delta compression over HTTP

Latest version **0.1.1** (published 2018-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install deltaflate-decode
pnpm add deltaflate-decode
yarn add deltaflate-decode
bun add deltaflate-decode
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2018-04-11 |
| First published | 2018-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 29.9 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | William MacDonald |
| Maintainers | wmsmacdonald |
| Keywords | delta, compression, decoding |

## Links

- npm: https://www.npmjs.com/package/deltaflate-decode
- Repository: https://github.com/wmsmacdonald/deltaflate
- Homepage: https://github.com/wmsmacdonald/deltaflate#readme
- Issues: https://github.com/wmsmacdonald/deltaflate/issues
- npm.io page: https://npm.io/package/deltaflate-decode

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^4.17.5
- [jsondiffpatch](https://npm.io/package/jsondiffpatch.md) ^0.3.8
- [text-encoding](https://npm.io/package/text-encoding.md) ^0.6.4

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 0.1.1 (latest) — 2018-04-11
- 0.1.0 — 2018-04-11

## README

# deltaflate
Delta compression over HTTP with extended support for GraphQL (WIP)

## Apollo client

```javascript
import { createFetch } from 'deltaflate-decode-graphql';
import jsondiffpatchImDecoder from 'deltaflate-decode/jsondiffpatchImDecoder';
import hash from 'object-hash';

import { HttpLink } from 'apollo-link-http';
import { InMemoryCache } from 'apollo-cache-inmemory';

const cache = new InMemoryCache();

const detlaflateFetch = createFetch(cache, [jsondiffpatchImDecoder], hash, window.fetch);

const link = new HttpLink({ uri: 'http://api.githunt.com/graphql', fetch: detlaflateFetch });

const client = new ApolloClient({
  link,
  cache
});
```

## Express GraphQL server
```javascript
const { deltaflateExpress } = require('deltaflate-express');
const { GraphQLEncoderDictionaryStore } = require('deltaflate-decode-graphql');

const express = require('express');
const { graphqlExpress } = require('apollo-server-express');
const express = require('express');
const { InMemoryCache } = require('apollo-cache-inmemory');

const app = express();

const dictionaryStore = new GraphQLEncoderDictionaryStore(() => new InMemoryCache());

app.use('/graphql', deltaflateExpress(dictionaryStore), graphqlExpress({ schema }));
```

---
_Source: https://npm.io/package/deltaflate-decode · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
