# graphql-compress

> Small regex-based compressor to be used before sending a graphql query over the wire.

Latest version **1.0.0** (published 2018-05-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install graphql-compress
pnpm add graphql-compress
yarn add graphql-compress
bun add graphql-compress
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-05-16 |
| First published | 2018-05-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jerome T.K. Covington |
| Maintainers | jcovington |
| Keywords | graphql, query, compress |

## Links

- npm: https://www.npmjs.com/package/graphql-compress
- Repository: https://github.com/jeromecovington/graphql-compress
- Homepage: https://github.com/jeromecovington/graphql-compress#readme
- Issues: https://github.com/jeromecovington/graphql-compress/issues
- npm.io page: https://npm.io/package/graphql-compress

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-05-16

## README

# graphql-compress
Small regex-based compressor to be used before sending a graphql query over the wire.

Influenced by [graphql-query-compress](https://www.npmjs.com/package/graphql-query-compress), which takes a more complex, lexer-based approach.

## Installation
```shell
$ npm install graphql-compress
```

## Usage
```js
const graphQLCompress = require('graphql-compress');

const query = `
{
  allSpecies {
    edges {
      node {
        name
      }
    }
  }
}
`;

const uri = `http://graphql.org/swapi-graphql/?query=${graphQLCompress(query)}`;

// Send request to uri using fetch or the http library of your choice.
```

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