# is-query-valid

> Performs query validation on field/variable list

Latest version **0.0.3** (published 2019-02-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-query-valid
pnpm add is-query-valid
yarn add is-query-valid
bun add is-query-valid
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2019-02-22 |
| First published | 2019-02-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Emmanuel Owosekun |
| Maintainers | balou9 |
| Keywords | query, validation, field, variable, validator |

## Links

- npm: https://www.npmjs.com/package/is-query-valid
- Repository: https://github.com/Balou9/is-query-valid
- Homepage: https://github.com/Balou9/is-query-valid#readme
- Issues: https://github.com/Balou9/is-query-valid/issues
- npm.io page: https://npm.io/package/is-query-valid

## 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

- 0.0.3 (latest) — 2019-02-22
- 0.0.2 — 2019-02-20
- 0.0.1 — 2019-02-19

## README

# is-query-valid

[![build status](http://img.shields.io/travis/Balou9/is-query-valid.svg?style=flat)](http://travis-ci.org/Balou9/is-query-valid) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/Balou9/is-query-valid?branch=master&svg=true)](https://ci.appveyor.com/project/Balou9/is-query-valid)

***

Performs query validation on field/variable list.  
Validation includes brackets and double quotes

***

## Get it

```
npm install --save is-query-valid
```
***

## Usage
```js
var isQueryValid = require('is-query-valid')
var arr = ['[absolutely]', ',[everybody]', ',[is]', ',[free]']

isQueryValid(arr, (err, isTrue) => {
  if (err) throw err
  console.log('Query Validator returns', isTrue)
})
// Query Validator returns true
```

## API
### `isQueryValid(arr)`   

`arr` string array

Returns `true` if each matches query formatting rule and `false` if not  

**Rule**: Any word is enclosed by double quotation marks or opening and closing brackets.

## License

[MIT](./license.md)

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