# g-string

> Manages query string

Latest version **1.0.1** (published 2017-08-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install g-string
pnpm add g-string
yarn add g-string
bun add g-string
```

## 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.1 |
| Published | 2017-08-29 |
| First published | 2017-08-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Geoffrey Chong |
| Maintainers | gyfchong |
| Keywords | query, string, url |

## Links

- npm: https://www.npmjs.com/package/g-string
- Repository: https://github.com/gyfchong/g-string
- Homepage: https://github.com/gyfchong/g-string#readme
- Issues: https://github.com/gyfchong/g-string/issues
- npm.io page: https://npm.io/package/g-string

## Dependencies (2)

- [query-string](https://npm.io/package/query-string.md) ^5.0.0
- [object-assign](https://npm.io/package/object-assign.md) ^4.1.1

## 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.1 (latest) — 2017-08-29
- 1.0.0 — 2017-08-29
- 0.1.0 — 2017-08-18

## README

# g-string
> Manage your query string parameters

## Why?
Because React Router v4 doesn't manage query strings anymore, so I built my own :)

## What does it do?
Combines your current URL query with the object you pass it and returns a new query string.

## Install

```
$ npm install g-string
```


## Usage
```js
import gString from 'g-string';

gString({ foo: bar })
//=> foo=bar

gString({ hello: world })
//=> foo=bar&hello=world


gString({}, 'hash')
//=> foo=bar&hello=world#hash
```

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