# query-boy

> build dynamic queries

Latest version **1.1.0** (published 2019-08-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install query-boy
pnpm add query-boy
yarn add query-boy
bun add query-boy
```

## 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.1.0 |
| Published | 2019-08-13 |
| First published | 2019-08-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 12 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Frank Holder |
| Maintainers | atomstrom |
| Keywords | queries, query, params |

## Links

- npm: https://www.npmjs.com/package/query-boy
- Repository: https://github.com/atomstrom/query-builder
- Homepage: https://github.com/atomstrom/query-builder#readme
- Issues: https://github.com/atomstrom/query-builder/issues
- npm.io page: https://npm.io/package/query-boy

## Dependencies (3)

- [babel-jest](https://npm.io/package/babel-jest.md) ^24.8.0
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.5.5
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.5.5

## 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.1.0 (latest) — 2019-08-13
- 1.0.1 — 2019-08-06
- 1.0.0 — 2019-08-05

## README

# query-boy
[![Build Status](https://travis-ci.com/atomstrom/query-boy.svg?token=xR6iXFbQzQedPMsfrvar&branch=develop)](https://travis-ci.com/atomstrom/query-boy)

### Usage example
```
import Query from 'query-boy';
const test = new Query();
const query = new Query('/include');

query.addParam('length', '3');
query.addParam('name', 'jane');
query.getQuery();
-> '/include?length=3&name=jane'

query.removeParam('name');
query.getQuery();
-> '/include?length=3'
```

### Methods
- getQuery()
- addParam(identifier, value, position) // position optional
- removeParam(identifier)
- getValue(identifier)
- clear()

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